Commit 034ca7e0 authored by Chao Yu's avatar Chao Yu Committed by David Anderson
Browse files

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: default avatarChao Yu <chao@kernel.org>
Tested-by: default avatarZhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: default avatarJaegeuk 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: default avatarXiuhong Wang <xiuhong.wang@unisoc.com>
parent 25d1f594
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment