Commit 98459563 authored by Zhiguo Niu's avatar Zhiguo Niu Committed by David Anderson
Browse files

BACKPORT: f2fs: fix to handle error paths of {new,change}_curseg()



{new,change}_curseg() may return error in some special cases,
error handling should be did in their callers, and this will also
facilitate subsequent error path expansion in {new,change}_curseg().

Bug: 337626258
Signed-off-by: default avatarZhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit a7c4ac49)
[xiuhong: Resolved minor conflict in fs/f2fs/segment.c&f2fs.h&super.c]
Change-Id: Ia16537bc21f73d0c630adb1bb45b8685cbf63ac0
Signed-off-by: default avatarxiuhong.wang <xiuhong.wang@unisoc.com>
parent bffffc7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment