Skip to content

Commit 66d36a2

Browse files
author
Jaegeuk Kim
committed
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 <[email protected]> Reviewed-by: Namjae Jeon <[email protected]>
1 parent 12faafe commit 66d36a2

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)