diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-05-06 23:17:32 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-05-09 18:31:27 +0200 |
commit | 2e42b7f817acd6e8d78226445eb6fe44fe79c12a (patch) | |
tree | 1e1562dbd1f13131c9adb386c80996faa1a75273 /fs/f2fs | |
parent | f2fs: skip GC if possible when checkpoint disabling (diff) | |
download | linux-2e42b7f817acd6e8d78226445eb6fe44fe79c12a.tar.xz linux-2e42b7f817acd6e8d78226445eb6fe44fe79c12a.zip |
f2fs: stop allocating pinned sections if EAGAIN happens
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index e4cf8b7b23aa..b307d96a0a7c 100644 --- 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; } |