Skip to content

Commit 2ab56a5

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: remove unneeded memory footprint accounting
We forgot to remov memory footprint accounting of per-cpu type variables, fix it. Fixes: 35782b2 ("f2fs: remove percpu_count due to performance regression") Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 66e8336 commit 2ab56a5

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎fs/f2fs/debug.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ static void update_mem_info(struct f2fs_sb_info *sbi)
179179
si->base_mem += sizeof(struct f2fs_sb_info) + sbi->sb->s_blocksize;
180180
si->base_mem += 2 * sizeof(struct f2fs_inode_info);
181181
si->base_mem += sizeof(*sbi->ckpt);
182-
si->base_mem += sizeof(struct percpu_counter) * NR_COUNT_TYPE;
183182

184183
/* build sm */
185184
si->base_mem += sizeof(struct f2fs_sm_info);

0 commit comments

Comments
 (0)