函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-29 10:45:16
Last Modify:2020-03-18 10:38:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:If a page has any new buffers, zero them out here, and mark them uptodate* and dirty so they'll be written out (in order to prevent uninitialised* block data from leaking). And clear the new bit.

函数原型:void page_zero_new_buffers(struct page *page, unsigned from, unsigned to)

返回类型:void

参数:

类型参数名称
struct page *page
unsignedfrom
unsignedto
1883  BUG_ON(!PageLocked(page))
1884  如果非page_has_buffers(page)则返回
1887  bh等于head等于If we *know* page->private refers to buffer_heads (page)
1888  block_start等于0
1889  循环
1890  block_end等于block_start size of mapping
1892  如果buffer_new(bh)则
1893  如果block_end大于fromblock_start小于to
1909  block_start等于block_end
1910  bh等于 circular list of page's buffers
1911 bh不等于head循环
调用者
名称描述
__block_write_begin_int
block_write_end
nobh_write_beginOn entry, the page is fully not uptodate.* On exit the page is fully uptodate in the areas outside (from,to)* The filesystem needs to handle block truncation upon failure.