diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-09-25 15:25:21 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-09-28 10:40:46 -0700 |
commit | 61f7725aa148ee870436a29d3a24d5c00ab7e9af (patch) | |
tree | 13d933464f0c298a5d705a3d281631f989a261c8 /fs/f2fs/gc.c | |
parent | edc55aaf0d1712b54a3704dd58423c7e495534fe (diff) | |
download | linux-61f7725aa148ee870436a29d3a24d5c00ab7e9af.tar.bz2 |
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>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r-- | fs/f2fs/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 247b31e73303..f541aa3ff7d5 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -1253,7 +1253,7 @@ stop: put_gc_inode(&gc_list); - if (sync) + if (sync && !ret) ret = sec_freed ? 0 : -EAGAIN; return ret; } |