Skip to content

Commit

Permalink
f2fs: read with READ_SYNC when getting dnode page
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Jaegeuk Kim authored and Hashcode committed Mar 25, 2015
1 parent a530ddb commit 12ae513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/f2fs/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ struct page *get_node_page_ra(struct page *parent, int start)
if (!page)
return ERR_PTR(-ENOMEM);

err = read_node_page(page, READA);
err = read_node_page(page, READ_SYNC);
if (err) {
f2fs_put_page(page, 1);
return ERR_PTR(err);
Expand Down

0 comments on commit 12ae513

Please sign in to comment.