projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2880f47
)
f2fs: stop allocating pinned sections if EAGAIN happens
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 6 May 2022 21:17:32 +0000
(14:17 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 9 May 2022 16:31:27 +0000
(09:31 -0700)
EAGAIN doesn't guarantee to have a free section. Let's report it.
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index e4cf8b7b23aa4bbcb54d7c03a5ec36a79aaf1522..b307d96a0a7cea6728e28215458e89ec1f972291 100644
(file)
--- a/
fs/f2fs/file.c
+++ b/
fs/f2fs/file.c
@@
-1685,7
+1685,7
@@
next_alloc:
GET_SEC_FROM_SEG(sbi, overprovision_segments(sbi)))) {
f2fs_down_write(&sbi->gc_lock);
err = f2fs_gc(sbi, true, false, false, NULL_SEGNO);
- if (err && err != -ENODATA
&& err != -EAGAIN
)
+ if (err && err != -ENODATA)
goto out_err;
}