]> Git Repo - linux.git/commit
f2fs: fix to clear CP_TRIMMED_FLAG
authorChao Yu <[email protected]>
Wed, 31 Jan 2018 01:30:34 +0000 (09:30 +0800)
committerJaegeuk Kim <[email protected]>
Mon, 12 Mar 2018 23:05:34 +0000 (08:05 +0900)
commitcd36d7a17f9da68be9aa67185ba3ad7969934a19
tree23cf882fa7719b0f42542b0609dfe366e777e18e
parent199bc3fef29cacf672e7e5cd49d296c1fdc1a891
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 <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
fs/f2fs/checkpoint.c
This page took 0.05506 seconds and 4 git commands to generate.