f2fs: return fs_trim if there is no candidate
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 30 Dec 2016 06:06:15 +0000 (22:06 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 23 Feb 2017 02:48:40 +0000 (18:48 -0800)
commit25290fa5591d81767713db304e0d567bf991786f
treed0d38079a0e2c3830f3d1a79d81af92548b4cf9d
parent0333ad4e4f49e14217256e1db1134a70cf60b2de
f2fs: return fs_trim if there is no candidate

If there is no candidate to submit discard command during f2fs_trim_fs, let's
return without checkpoint.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/segment.c