f2fs: give up CP_TRIMMED_FLAG if it drops discards
authorChao Yu <yuchao0@huawei.com>
Wed, 4 Oct 2017 01:08:37 +0000 (09:08 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 01:21:56 +0000 (17:21 -0800)
commitab0a7977c9880fb7c0caa030dfe46edbbc70e5e4
tree56bd762477b8e1c5de3bdd1c60289a04e930566a
parent001cc0b0c526205fb8af381c9b1fd4288010abc6
f2fs: give up CP_TRIMMED_FLAG if it drops discards

In ->umount, once we drop remained discard entries, we should not
set CP_TRIMMED_FLAG with another checkpoint.

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