Skip to contentSkip to conversation

f2fs: remove unneeded memory footprint accounting

PATCH New Chao Yu 1 participant 1 message Nov 21, 2017 F2FS file system

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 1/1 f2fs: remove unneeded memory footprint accounting

We forgot to remov memory footprint accounting of per-cpu type variables, fix it.

Fixes 35782b233f37 ("f2fs: remove percpu_count due to performance regression")
---
 fs/f2fs/debug.c | 1 -
 1 file changed, 1 deletion(-)
fs/f2fs/debug.c +0 -1
index 4d929627e210..674f9bbe98d9 100644
@@ -179,7 +179,6 @@ static void update_mem_info(struct f2fs_sb_info *sbi)
 	si->base_mem += sizeof(struct f2fs_sb_info) + sbi->sb->s_blocksize;
 	si->base_mem += 2 * sizeof(struct f2fs_inode_info);
 	si->base_mem += sizeof(*sbi->ckpt);
-	si->base_mem += sizeof(struct percpu_counter) * NR_COUNT_TYPE;
 
 	/* build sm */
 	si->base_mem += sizeof(struct f2fs_sm_info);
Signature · 1 line
2.15.0.55.gc2ece9dc4de6