Skip to content

Commit 5508925

Browse files
Jaegeuk KimHashcode
authored andcommitted
f2fs: read with READ_SYNC when getting dnode page
The get_node_page_ra tries to: 1. grab or read a target node page for the given nid, 2. then, call ra_node_page to read other adjacent node pages in advance. So, when we try to read a target node page by #1, we should submit bio with READ_SYNC instead of READA. And, in #2, READA should be used. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com> Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com>
1 parent ba44a00 commit 5508925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/node.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ struct page *get_node_page_ra(struct page *parent, int start)
930930
if (!page)
931931
return ERR_PTR(-ENOMEM);
932932

933-
err = read_node_page(page, READA);
933+
err = read_node_page(page, READ_SYNC);
934934
if (err) {
935935
f2fs_put_page(page, 1);
936936
return ERR_PTR(err);

0 commit comments

Comments
 (0)