Function report | 
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 activity | Download SCCT | Chinese | 
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:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | inode | |
| struct cleancache_filekey * | key | 
| 148 | len = 0 , maxlen = CLEANCACHE_KEY_MAX | 
| 152 | If (s_export_op != NULL) Then | 
| 154 | If fhfn Then | 
| 156 | If len <= FILEID_ROOT || len == FILEID_INVALID Then Return -1 | 
| 158 | If maxlen > CLEANCACHE_KEY_MAX Then Return -1 | 
| 162 | Return 0 | 
| Name | Describe | 
|---|---|
| __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_page | Invalidate 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_inode | Invalidate all data from cleancache associated with the poolid and the* mappings's inode so that all subsequent gets to this poolid/inode* will fail | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |