commit | 74f36260a3b95cae6793e5b9801a63009b1eec1a | [log] [tgz] |
---|---|---|
author | Weichao Guo <guoweichao@huawei.com> | Thu May 11 04:28:00 2017 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Thu Jul 13 17:14:13 2017 -0700 |
tree | 4d930cf2665a8531395d5b047c3486e0fa786f32 | |
parent | f31e1aea3db3882e3194d6d2be3c98c52b837a59 [diff] |
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>