函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lock_is_partially_uptodate checks whether buffers within a page are* uptodate or not.* Returns true if all buffers which correspond to a file portion* we want to read are uptodate.

函数原型:int block_is_partially_uptodate(struct page *page, unsigned long from, unsigned long count)

返回类型:int

参数:

类型参数名称
struct page *page
unsigned longfrom
unsigned longcount
2217  ret等于1
2219  如果非page_has_buffers(page)则返回:0
2222  head等于If we *know* page->private refers to buffer_heads (page)
2223  blocksize等于 size of mapping
2224  to等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsigned, PAGE_SIZE - from, count)
2225  to等于fromto
2226  如果from小于blocksizeto大于PAGE_SIZEblocksize则返回:0
2229  bh等于head
2230  block_start等于0
2231  循环
2232  block_end等于block_startblocksize
2233  如果block_end大于fromblock_start小于to
2235  ret等于0
2236  退出
2238  如果block_end大于等于to退出
2241  block_start等于block_end
2242  bh等于 circular list of page's buffers
2243 bh不等于head循环
2245  返回:ret