函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\cleancache.c Create Date:2022-07-27 17:59:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:"Get" data from cleancache associated with the poolid/inode/index* that were specified when the data was put to cleanache and, if* successful, use it to fill the specified page with data and return 0.

函数原型:int __cleancache_get_page(struct page *page)

返回类型:int

参数:

类型参数名称
struct page *page
178  ret等于负1
180  struct cleancache_filekey key = {key = {0}}
182  如果非cleancache_ops is set by cleancache_register_ops to contain the pointers* to the cleancache "backend" implementation functions.
183  cleancache_failed_gets自加
184  转到:out
187  VM_BUG_ON_PAGE(!PageLocked(page), page)
188  pool_id等于cleancache_poolid
189  如果pool_id小于0则转到:out
192  如果If the filesystem uses exportable filehandles, use the filehandle as* the key, else use the inode number.小于0则转到:out
195  ret等于get_page(pool_id, key, Our offset within mapping. , page)
196  如果ret恒等于0则Counters available via /sys/kernel/debug/cleancache (if debugfs is* properly configured. These are for information only so are not protected* against increment races.自加
198  否则cleancache_failed_gets自加
200  out :
201  返回:ret