函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:If the filesystem uses exportable filehandles, use the filehandle as* the key, else use the inode number.

函数原型:static int cleancache_get_key(struct inode *inode, struct cleancache_filekey *key)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct cleancache_filekey *key
147  int( * fhfn)(struct inode * , __u32 * fh, int * , struct inode * )
148  len等于0, maxlen等于CLEANCACHE_KEY_MAX
149  sb等于i_sb
151  ino等于Stat data, not accessed from path walking
152  如果(s_export_op != NULL)则
153  fhfn等于encode_fh
154  如果fhfn
155  len等于inode, fh[0]
156  如果len小于等于FILEID_ROOTlen恒等于FILEID_INVALID则返回:负1
158  如果maxlen大于CLEANCACHE_KEY_MAX则返回:负1
162  返回:0
调用者
名称描述
__cleancache_get_page"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.
__cleancache_put_page"Put" data from a page to cleancache and associate it with the* (previously-obtained per-filesystem) poolid and the page's,* inode and page index. Page must be locked. Note that a put_page
__cleancache_invalidate_pageInvalidate any data from cleancache associated with the poolid and the* page's inode and page index so that a subsequent "get" will fail
__cleancache_invalidate_inodeInvalidate all data from cleancache associated with the poolid and the* mappings's inode so that all subsequent gets to this poolid/inode* will fail