Weichao Guo 51be334da3 f2fs: set SBI_NEED_FSCK flag when inconsistent node block found
[ Upstream commit 6663b138ded1a59e630c9e605e42aa7fde490cdc ]

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: Weichao Guo <guoweichao@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-01 09:23:34 +01:00
..
2019-05-08 21:23:11 -07:00
2018-09-12 13:07:10 -07:00
2018-09-12 13:07:10 -07:00
2019-08-12 19:33:51 -07:00
2021-09-22 12:26:22 +02:00
2018-09-12 13:07:10 -07:00
2019-08-12 19:33:51 -07:00