projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edc55aa
)
f2fs: return correct errno in f2fs_gc
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 25 Sep 2018 22:25:21 +0000
(15:25 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 28 Sep 2018 17:40:46 +0000
(10:40 -0700)
This fixes overriding error number in f2fs_gc.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/gc.c
b/fs/f2fs/gc.c
index 247b31e733032dc21bc32e8f5617b0297dfacfb3..f541aa3ff7d5d02ae887e0358403e6cdca40acf5 100644
(file)
--- 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;
}