feat: add /proc/fs_cache to display cache info

add /proc/fs_cache to display vnode, path cache, page cache.
also change some bad virable name

close: #I3WESD

Signed-off-by: mucor <mucorwang@gmail.com>
This commit is contained in:
mucor
2021-06-21 16:11:06 +08:00
parent 36e5124c0a
commit 53c6d96c6f
9 changed files with 294 additions and 32 deletions

View File

@@ -206,6 +206,9 @@ VOID OsMarkPageDirty(LosFilePage *fpage, LosVmMapRegion *region, int off, int le
typedef struct ProcessCB LosProcessCB;
VOID OsVmmFileRegionFree(struct file *filep, LosProcessCB *processCB);
#ifdef LOSCFG_DEBUG_VERSION
VOID ResetPageCacheHitInfo(int *try, int *hit);
#endif
#ifdef __cplusplus
#if __cplusplus
}