Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:10
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void page_zero_new_buffers(struct page *page, unsigned from, unsigned to)

Type:void

Parameter:

TypeParameterName
struct page *page
unsignedfrom
unsignedto
1883  BUG_ON(!PageLocked(page))
1884  If Not page_has_buffers(page) Then Return
1887  bh = head = If we *know* page->private refers to buffer_heads (page)
1888  block_start = 0
1889  Do
1890  block_end = block_start + size of mapping
1892  If buffer_new(bh) Then
1893  If block_end > from && block_start < to Then
1909  block_start = block_end
1910  bh = circular list of page's buffers
1911  When bh != head cycle
Caller
NameDescribe
__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.