aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/debug.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-09-29 01:59:37 -0400
committerJaegeuk Kim <jaegeuk@kernel.org>2017-10-10 15:49:53 -0400
commitb77061bfcbfb72bda6f583d93589e3783f9dab59 (patch)
tree6cf75f8e20d677df59d858e10cd9782e96194f04 /fs/f2fs/debug.c
parent3f06252f7aa5862591ee37fab63c4e95803880b6 (diff)
f2fs: fix to show ino management cache size correctly
It needs to stat size of ino management cache with all type instead of orphan ino type. Fixes: 652be55162dc ("f2fs: show # of orphan inodes") Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r--fs/f2fs/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c
index 14095fbb4039..d441660c3ba6 100644
--- a/fs/f2fs/debug.c
+++ b/fs/f2fs/debug.c
@@ -240,7 +240,7 @@ get_cache:
240 si->cache_mem += NM_I(sbi)->dirty_nat_cnt * 240 si->cache_mem += NM_I(sbi)->dirty_nat_cnt *
241 sizeof(struct nat_entry_set); 241 sizeof(struct nat_entry_set);
242 si->cache_mem += si->inmem_pages * sizeof(struct inmem_pages); 242 si->cache_mem += si->inmem_pages * sizeof(struct inmem_pages);
243 for (i = 0; i <= ORPHAN_INO; i++) 243 for (i = 0; i < MAX_INO_ENTRY; i++)
244 si->cache_mem += sbi->im[i].ino_num * sizeof(struct ino_entry); 244 si->cache_mem += sbi->im[i].ino_num * sizeof(struct ino_entry);
245 si->cache_mem += atomic_read(&sbi->total_ext_tree) * 245 si->cache_mem += atomic_read(&sbi->total_ext_tree) *
246 sizeof(struct extent_tree); 246 sizeof(struct extent_tree);