Skip to content

Commit b77061b

Browse files
chaseyuJaegeuk Kim
authored andcommitted
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: 652be55 ("f2fs: show # of orphan inodes") Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 3f06252 commit b77061b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/f2fs/debug.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static void update_mem_info(struct f2fs_sb_info *sbi)
240240
si->cache_mem += NM_I(sbi)->dirty_nat_cnt *
241241
sizeof(struct nat_entry_set);
242242
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++)
244244
si->cache_mem += sbi->im[i].ino_num * sizeof(struct ino_entry);
245245
si->cache_mem += atomic_read(&sbi->total_ext_tree) *
246246
sizeof(struct extent_tree);

0 commit comments

Comments
 (0)