mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 01:34:00 +08:00
f2fs: return correct errno in f2fs_gc
This fixes overriding error number in f2fs_gc. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
edc55aaf0d
commit
61f7725aa1
@ -1253,7 +1253,7 @@ stop:
|
||||
|
||||
put_gc_inode(&gc_list);
|
||||
|
||||
if (sync)
|
||||
if (sync && !ret)
|
||||
ret = sec_freed ? 0 : -EAGAIN;
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user