Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\cleancache.c Create Date:2022-07-28 16:24:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:If the filesystem uses exportable filehandles, use the filehandle as* the key, else use the inode number.

Proto:static int cleancache_get_key(struct inode *inode, struct cleancache_filekey *key)

Type:int

Parameter:

TypeParameterName
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  If (s_export_op != NULL) Then
153  fhfn = encode_fh
154  If fhfn Then
155  len = inode, fh[0]
156  If len <= FILEID_ROOT || len == FILEID_INVALID Then Return -1
158  If maxlen > CLEANCACHE_KEY_MAX Then Return -1
162  Return 0
Caller
NameDescribe
__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