Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\mpage.c Create Date:2022-07-28 20:15:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:We have our BIO, so we can now mark the buffers clean. Make* sure to only clean buffers which we know we'll be writing.

Proto:static void clean_buffers(struct page *page, unsigned first_unmapped)

Type:void

Parameter:

TypeParameterName
struct page *page
unsignedfirst_unmapped
463  buffer_counter = 0
465  If Not page_has_buffers(page) Then Return
467  head = If we *know* page->private refers to buffer_heads (page)
468  bh = head
470  Do
471  If buffer_counter++ == first_unmapped Then Break
473  clear_buffer_dirty(bh)
474  bh = circular list of page's buffers
475  When bh != head cycle
482  If buffer_heads_over_limit && PageUptodate(page) Then try_to_free_buffers(page)
Caller
NameDescribe
clean_page_buffersFor situations where we want to clean all buffers attached to a page.* We don't need to calculate how many buffers are attached to the page,* we just need to specify a number larger than the maximum number of buffers.
__mpage_writepage