summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-12-06 02:18:15 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2014-12-08 19:35:15 +0100
commit8dcf2ff72120707f960d9b3b15ce6e50705b13a6 (patch)
treebfc57918d72b70aeae3f7d6b79de8a06e20ed772 /fs/f2fs/f2fs.h
parentf2fs: release inmemory pages when the file was closed (diff)
downloadlinux-8dcf2ff72120707f960d9b3b15ce6e50705b13a6.tar.xz
linux-8dcf2ff72120707f960d9b3b15ce6e50705b13a6.zip
f2fs: count the number of inmemory pages
This patch adds counting # of inmemory pages in the page cache. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index c787fe302918..f60b817a7f0d 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -462,6 +462,7 @@ enum count_type {
F2FS_DIRTY_DENTS,
F2FS_DIRTY_NODES,
F2FS_DIRTY_META,
+ F2FS_INMEM_PAGES,
NR_COUNT_TYPE,
};
@@ -1498,7 +1499,7 @@ struct f2fs_stat_info {
int ndirty_node, ndirty_dent, ndirty_dirs, ndirty_meta;
int nats, sits, fnids;
int total_count, utilization;
- int bg_gc, inline_inode, inline_dir;
+ int bg_gc, inline_inode, inline_dir, inmem_pages;
unsigned int valid_count, valid_node_count, valid_inode_count;
unsigned int bimodal, avg_vblocks;
int util_free, util_valid, util_invalid;