diff options
author | Weichao Guo <guoweichao@huawei.com> | 2017-05-11 04:28:00 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-05-23 21:05:35 -0700 |
commit | e5dbd9563e5528f98728ba0bc8361f804ace5aae (patch) | |
tree | 95459c262c75c126ff9cce57b9609632e0f9b4f9 /fs/f2fs/node.c | |
parent | 1c6d8ee4b8aaadc3645497658007ca007312351d (diff) | |
download | linux-e5dbd9563e5528f98728ba0bc8361f804ace5aae.tar.gz linux-e5dbd9563e5528f98728ba0bc8361f804ace5aae.tar.bz2 linux-e5dbd9563e5528f98728ba0bc8361f804ace5aae.zip |
f2fs: make sure f2fs_gc returns consistent errno
By default, f2fs_gc returns -EINVAL in general error cases, e.g., no victim
was selected. However, the default errno may be overwritten in two cases:
gc_more and BG_GC -> FG_GC. We should return consistent errno in such cases.
Signed-off-by: Weichao Guo <guoweichao@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
0 files changed, 0 insertions, 0 deletions