f2fs: avoid needless checkpoint in f2fs_trim_fs
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 30 Dec 2016 00:58:54 +0000 (16:58 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 22 Feb 2017 21:16:36 +0000 (13:16 -0800)
commit0333ad4e4f49e14217256e1db1134a70cf60b2de
treea00f9a2e6139942b4028a6f4fbf5aad3b09b3bde
parent4e6a8d9b224f886362ea6e8f6046b541437c944f
f2fs: avoid needless checkpoint in f2fs_trim_fs

The f2fs_trim_fs() doesn't need to do checkpoint if there are newly allocated
data blocks only which didn't change the critical checkpoint data such as nat
and sit entries.

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