Skip to content

Commit 82c7863

Browse files
author
Jaegeuk Kim
committed
f2fs: do not count ENOENT for error case
Otherwise, we can get a wrong cp_error mark. Cc: <[email protected]> Fixes: a7b8618 ("f2fs: avoid infinite loop to flush node pages") Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 61803e9 commit 82c7863

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/f2fs/node.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,9 @@ static struct page *__get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid,
14501450
out_err:
14511451
ClearPageUptodate(page);
14521452
out_put_err:
1453-
f2fs_handle_page_eio(sbi, page->index, NODE);
1453+
/* ENOENT comes from read_node_page which is not an error. */
1454+
if (err != -ENOENT)
1455+
f2fs_handle_page_eio(sbi, page->index, NODE);
14541456
f2fs_put_page(page, 1);
14551457
return ERR_PTR(err);
14561458
}

0 commit comments

Comments
 (0)