f2fs: return correct errno in f2fs_gc
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 25 Sep 2018 22:25:21 +0000 (15:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:19:21 +0000 (08:19 +0100)
commitac02379889e2d8f8540bd3f22bfcb2d20b3d9b08
treea557ded88f8b47b8d28e1e315e88317448b8e467
parent7cbac9d598a795a361c7df913c56597a6c58e5d8
f2fs: return correct errno in f2fs_gc

[ Upstream commit 61f7725aa148ee870436a29d3a24d5c00ab7e9af ]

This fixes overriding error number in f2fs_gc.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/gc.c