Skip to content

Commit 2e42b7f

Browse files
author
Jaegeuk Kim
committed
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>
1 parent 2880f47 commit 2e42b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,7 @@ static int expand_inode_data(struct inode *inode, loff_t offset,
16851685
GET_SEC_FROM_SEG(sbi, overprovision_segments(sbi)))) {
16861686
f2fs_down_write(&sbi->gc_lock);
16871687
err = f2fs_gc(sbi, true, false, false, NULL_SEGNO);
1688-
if (err && err != -ENODATA && err != -EAGAIN)
1688+
if (err && err != -ENODATA)
16891689
goto out_err;
16901690
}
16911691

0 commit comments

Comments
 (0)