f2fs: avoid needless checkpoint in f2fs_trim_fs
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 30 Dec 2016 00:58:54 +0000 (16:58 -0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 3 Oct 2017 13:48:56 +0000 (13:48 +0000)
commitd051ccbd1bfcd04283be206edbe6e5e9dbfe6cb8
tree0fa9464c6b41a13bb9820da541a6b1c0e86f8ca2
parent132263ddad34592c1c469f5ed1e192c6df6b9a13
f2fs: avoid needless checkpoint in f2fs_trim_fs

commit 0333ad4e4f49e14217256e1db1134a70cf60b2de upstream.

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.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c