f2fs: retry to update the inode page given data corruption
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 30 Jan 2023 23:20:09 +0000 (15:20 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 2 Feb 2023 21:37:17 +0000 (13:37 -0800)
commit3aa51c61cb4a4dcb40df51ac61171e9ac5a35321
tree3785815129e4783b97d2b9c8d33f934b4b3de140
parent933141e4eb49d8b48721e2377835063a1e8fb823
f2fs: retry to update the inode page given data corruption

If the storage gives a corrupted node block due to short power failure and
reset, f2fs stops the entire operations by setting the checkpoint failure flag.

Let's give more chances to live by re-issuing IOs for a while in such critical
path.

Cc: stable@vger.kernel.org
Suggested-by: Randall Huang <huangrandall@google.com>
Suggested-by: Chao Yu <chao@kernel.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/inode.c