Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fa0010c8 authored by Chao Yu's avatar Chao Yu Committed by Daniel Rosenberg
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>

(cherry picked from commit 7d009e048d7cfcc21d400f2aba4c8bacbdebbd47)
[drosen: Resolved many conflicts in segment.c ]
Change-Id: Ic3db543ed6012d4083c7d899bc3c83f310f78437
Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
Bug: 358293777
parent 862cf9f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment