BACKPORT: f2fs: fix to handle segment allocation failure correctly
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. Bug: 337626258 Signed-off-by:Chao Yu <chao@kernel.org> Tested-by:
Zhiguo Niu <zhiguo.niu@unisoc.com> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org> (cherry picked from commit ee8bc5f3) [xiuhong: Resolved minor conflict in fs/f2fs/segment.c&data.c] Change-Id: I252f6185737129333aa672e5603939ad15dab06a Signed-off-by:
Xiuhong Wang <xiuhong.wang@unisoc.com>
Loading