diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-01 07:50:06 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-29 00:41:39 +0200 |
commit | 836b5a6356ac49a4631c06bc87b0ea02f41623ca (patch) | |
tree | ee0ff00153fef33169b5c328f4a1fe64235cbbd5 /fs/f2fs/checkpoint.c | |
parent | f2fs: introduce discard_map for f2fs_trim_fs (diff) | |
download | linux-836b5a6356ac49a4631c06bc87b0ea02f41623ca.tar.xz linux-836b5a6356ac49a4631c06bc87b0ea02f41623ca.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 55b65e52aaea..a61d4b06e05a 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); } |