commit | 61f7725aa148ee870436a29d3a24d5c00ab7e9af | [log] [tgz] |
---|---|---|
author | Jaegeuk Kim <jaegeuk@kernel.org> | Tue Sep 25 15:25:21 2018 -0700 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Fri Sep 28 10:40:46 2018 -0700 |
tree | 13d933464f0c298a5d705a3d281631f989a261c8 | |
parent | edc55aaf0d1712b54a3704dd58423c7e495534fe [diff] [blame] |
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>
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 247b31e..f541aa3 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c
@@ -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; }