commit | 92413bc12e32720b8a786553db84b6a7c901478c | [log] [tgz] |
---|---|---|
author | Chao Yu <yuchao0@huawei.com> | Wed Jan 31 09:30:34 2018 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Sun Apr 08 04:01:00 2018 -0700 |
tree | 5ba04e461677890f0a61ad6ad6ed77874af6ebb7 | |
parent | a1afb55f978408867af06c3517b723d1ddcbb1e8 [diff] |
f2fs: fix to clear CP_TRIMMED_FLAG Once CP_TRIMMED_FLAG is set, after a reboot, we will never issue discard before LBA becomes invalid again, fix it by clearing the flag in checkpoint without CP_TRIMMED reason. Fixes: 1f43e2ad7bff ("f2fs: introduce CP_TRIMMED_FLAG to avoid unneeded discard") Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>