Re: [f2fs-dev] [PATCH] f2fs: set SBI_NEED_FSCK flag when inconsistent node block found

2021-09-18 Thread Chao Yu
On 2021/9/18 20:46, Weichao Guo wrote: 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

Re: [f2fs-dev] [PATCH v2 2/2] f2fs: fix missing inplace count in overwrite with direct io

2021-09-18 Thread Chao Yu
On 2021/9/18 14:46, 常凤楠 wrote: -Original Message- From: changfeng...@vivo.com On Behalf Of Chao Yu Sent: Friday, September 17, 2021 9:00 PM To: 常凤楠 ; jaeg...@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net Subject: Re: [PATCH v2 2/2] f2fs: fix missing inplace count in overwrite

[f2fs-dev] [PATCH] f2fs: set SBI_NEED_FSCK flag when inconsistent node block found

2021-09-18 Thread Weichao Guo via Linux-f2fs-devel
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: