diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-12-05 17:18:15 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-12-08 10:35:15 -0800 |
commit | 8dcf2ff72120707f960d9b3b15ce6e50705b13a6 (patch) | |
tree | bfc57918d72b70aeae3f7d6b79de8a06e20ed772 /fs/f2fs/f2fs.h | |
parent | 126622343a8488917c5e0891eae1bc936a63f49a (diff) | |
download | linux-8dcf2ff72120707f960d9b3b15ce6e50705b13a6.tar.bz2 |
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.h | 3 |
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; |