Commit 1d561869 authored by Chao Yu's avatar Chao Yu Committed by Daeho Jeong
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.

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>

Bug: 361829529
Bug: 381105141
(cherry picked from commit 7d009e04)
Signed-off-by: default avatarDaeho Jeong <daehojeong@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:d41d398db683c6ab289dd57fc2dd02badd51b86d)
Merged-In: I4e7d90895d82687ae6ec6b64b2de222f1ee2ee9e
Change-Id: I4e7d90895d82687ae6ec6b64b2de222f1ee2ee9e
parent 7c57860b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment