Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:"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.

Proto:int __cleancache_get_page(struct page *page)

Type:int

Parameter:

TypeParameterName
struct page *page
178  ret = -1
180  struct cleancache_filekey key = {key = {0}}
182  If Not cleancache_ops is set by cleancache_register_ops to contain the pointers* to the cleancache "backend" implementation functions. Then
183  cleancache_failed_gets++
184  Go to out
187  VM_BUG_ON_PAGE(!PageLocked(page), page)
188  pool_id = cleancache_poolid
189  If pool_id < 0 Then Go to out
192  If If the filesystem uses exportable filehandles, use the filehandle as* the key, else use the inode number. < 0 Then Go to out
195  ret = get_page(pool_id, key, Our offset within mapping. , page)
196  If ret == 0 Then 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  Else cleancache_failed_gets++
200  out :
201  Return ret