]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/f2fs/f2fs.h
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>
Thu, 26 Oct 2017 08:44:10 +0000 (10:44 +0200)
commitcf5c759f927dc92452fa214691be0c8a3e7c115d
tree25ca30602ff0b3037bf5a91c71826af1423250ca
parent2ec6f2ef799b94e6e99868ef586cafceaa7c0475
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