]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: set SBI_NEED_FSCK flag when inconsistent node block found
authorWeichao Guo <guoweichao@oppo.com>
Sat, 18 Sep 2021 12:46:36 +0000 (20:46 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 20 Sep 2021 23:29:00 +0000 (16:29 -0700)
commit3f2dde79fe1d8d7756c2bcc0193e4e1c902ad00d
tree08608d82d41ef37267530125080801ebf197282c
parent7664a339be0f1d62f47fb2761384f435584ffdbc
f2fs: set SBI_NEED_FSCK flag when inconsistent node block found

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>
fs/f2fs/node.c