aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/debug.c
diff options
context:
space:
mode:
authorGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2015-04-30 22:37:50 -0700
committerGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2015-05-28 15:41:39 -0700
commita66cdd985532e69999b79249cd3b4a6bccd0f84b (patch)
treef031e26f195e77b8e49e37a86dbf96af5436b6f0 /fs/f2fs/debug.c
parentf2fs: revmove spin_lock for write_orphan_inodes (diff)
downloadlinux-a66cdd985532e69999b79249cd3b4a6bccd0f84b.tar.gz
linux-a66cdd985532e69999b79249cd3b4a6bccd0f84b.tar.bz2
linux-a66cdd985532e69999b79249cd3b4a6bccd0f84b.zip
f2fs: introduce discard_map for f2fs_trim_fs
This patch adds a bitmap for discard issues from f2fs_trim_fs. There-in rule is to issue discard commands only for invalidated blocks after mount. Once mount is done, f2fs_trim_fs trims out whole invalid area. After ehn, it will not issue and discrads redundantly. 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 f5388f37217e..f50acbc50998 100644
--- a/fs/f2fs/debug.c
+++ b/fs/f2fs/debug.c
@@ -143,7 +143,7 @@ static void update_mem_info(struct f2fs_sb_info *sbi)
si->base_mem += sizeof(struct sit_info);
si->base_mem += MAIN_SEGS(sbi) * sizeof(struct seg_entry);
si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi));
- si->base_mem += 2 * SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi);
+ si->base_mem += 3 * SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi);
si->base_mem += SIT_VBLOCK_MAP_SIZE;
if (sbi->segs_per_sec > 1)
si->base_mem += MAIN_SECS(sbi) * sizeof(struct sec_entry);