Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| struct page * | page |
| 178 | ret = -1 |
| 180 | struct cleancache_filekey key = {key = {0}} |
| 183 | cleancache_failed_gets++ |
| 184 | Go to out |
| 187 | VM_BUG_ON_PAGE(!PageLocked(page), page) |
| 188 | pool_id = cleancache_poolid |
| 192 | If If the filesystem uses exportable filehandles, use the filehandle as* the key, else use the inode number. < 0 Then Go to out |
| 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 |
| 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 |