Re: [f2fs-dev] [PATCH 3/4] f2fs: fix to handle segment allocation failure correctly

2024-02-26 Thread Zhiguo Niu
On Mon, Feb 26, 2024 at 3:46 PM Chao Yu wrote: > > Loop to Zhiguo, > > On 2024/2/22 20:18, Chao Yu wrote: > > If CONFIG_F2FS_CHECK_FS is off, and for very rare corner case that > > we run out of free segment, we should not panic kernel, instead, > > let's handle such error correctly in its

Re: [f2fs-dev] [PATCH 3/4] f2fs: fix to handle segment allocation failure correctly

2024-02-25 Thread Chao Yu
Loop to Zhiguo, On 2024/2/22 20:18, Chao Yu wrote: If CONFIG_F2FS_CHECK_FS is off, and for very rare corner case that we run out of free segment, we should not panic kernel, instead, let's handle such error correctly in its caller. Signed-off-by: Chao Yu --- fs/f2fs/data.c| 7 +--

[f2fs-dev] [PATCH 3/4] f2fs: fix to handle segment allocation failure correctly

2024-02-22 Thread Chao Yu
If CONFIG_F2FS_CHECK_FS is off, and for very rare corner case that we run out of free segment, we should not panic kernel, instead, let's handle such error correctly in its caller. Signed-off-by: Chao Yu --- fs/f2fs/data.c| 7 +-- fs/f2fs/f2fs.h| 2 +- fs/f2fs/file.c| 7