Commit e78ef919 authored by Weichao Guo's avatar Weichao Guo Committed by Carlos Llamas
Browse files

UPSTREAM: 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>

Bug: 231802812
(cherry picked from commit 22423c96)
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
Change-Id: I2f7f8c917d737202748a1cd1c9571bd793afa05a
parent cb9ff426
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment