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:support function for mpage_readpages

Proto:static void map_buffer_to_page(struct page *page, struct buffer_head *bh, int page_block)

Type:void

Parameter:

TypeParameterName
struct page *page
struct buffer_head *bh
intpage_block
106  inode = host
108  block = 0
110  If Not page_has_buffers(page) Then
118  Return
120  We attach and possibly dirty the buffers atomically wrt* __set_page_dirty_buffers() via private_lock. try_to_free_buffers* is already excluded via the page lock.
122  head = If we *know* page->private refers to buffer_heads (page)
123  page_bh = head
124  Do
125  If block == page_block Then
127  b_bdev = b_bdev
129  Break
131  page_bh = circular list of page's buffers
132  block++
133  When page_bh != head cycle
Caller
NameDescribe
do_mpage_readpageThis is the worker routine which does all the work of mapping the disk* blocks and constructs largest possible bios, submits them for IO if the* blocks are not contiguous on the disk