Skip to content
Commit 8984bba3 authored by Weichao Guo's avatar Weichao Guo Committed by Greg Kroah-Hartman
Browse files

f2fs: set SBI_NEED_FSCK flag when inconsistent node block found

[ Upstream commit 6663b138

 ]

Inconsistent node block will cause a file fail to open or read,
which could make the user process crashes or stucks. Let's mark
SBI_NEED_FSCK flag to trigger a fix at next fsck time. After
unlinking the corrupted file, the user process could regenerate
a new one and work correctly.

Signed-off-by: default avatarWeichao Guo <guoweichao@oppo.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fb89bcbf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment