summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-04-30 22:50:06 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2015-05-28 15:41:39 -0700
commit836b5a6356ac49a4631c06bc87b0ea02f41623ca (patch)
treeee0ff00153fef33169b5c328f4a1fe64235cbbd5 /fs/f2fs/checkpoint.c
parenta66cdd985532e69999b79249cd3b4a6bccd0f84b (diff)
downloadop-kernel-dev-836b5a6356ac49a4631c06bc87b0ea02f41623ca.zip
op-kernel-dev-836b5a6356ac49a4631c06bc87b0ea02f41623ca.tar.gz
f2fs: issue discard with finally produced len and minlen
This patch determines to issue discard commands by comparing given minlen and the length of produced final candidates. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 55b65e5..a61d4b0 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -1043,7 +1043,7 @@ static void do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
if (unlikely(f2fs_cp_error(sbi)))
return;
- clear_prefree_segments(sbi);
+ clear_prefree_segments(sbi, cpc);
clear_sbi_flag(sbi, SBI_IS_DIRTY);
}
OpenPOWER on IntegriCloud