diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-02-26 12:43:46 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-03-18 21:00:33 +0900 |
commit | 66d36a2944df461448159be5af13049dd2689e77 (patch) | |
tree | 643b6769dc41cbfbf15424eb81858571837a4544 | |
parent | 12faafe45477244bc32e2c58f74f7305cc7e84fa (diff) |
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>
-rw-r--r-- | fs/f2fs/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 3dc63f4cf2b..efcada7becd 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -930,7 +930,7 @@ repeat: 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); |