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

Commit 2b2a3c24 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: return correct errno in f2fs_gc



This fixes overriding error number in f2fs_gc.

Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 4474e2f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1253,7 +1253,7 @@ int f2fs_gc(struct f2fs_sb_info *sbi, bool sync,

	put_gc_inode(&gc_list);

	if (sync)
	if (sync && !ret)
		ret = sec_freed ? 0 : -EAGAIN;
	return ret;
}