函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\mpage.c Create Date:2022-07-29 10:46:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:support function for mpage_readpages

函数原型:static void map_buffer_to_page(struct page *page, struct buffer_head *bh, int page_block)

返回类型:void

参数:

类型参数名称
struct page *page
struct buffer_head *bh
intpage_block
106  inode等于host
108  block等于0
110  如果非page_has_buffers(page)则
118  返回
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  循环
125  如果block恒等于page_block
127  b_bdev等于b_bdev
129  退出
131  page_bh等于 circular list of page's buffers
132  block自加
133 page_bh不等于head循环
调用者
名称描述
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