summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-06-30 19:04:16 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2016-07-08 10:33:31 -0700
commit3bdad3c7ee72a76ec87be3477eb958ed7ca304fc (patch)
tree02461f580dce9ef55358fa1cb194667efb497f73 /fs/f2fs/node.c
parent2555a2d55822c9b2e1a933933dedd5d172067cea (diff)
downloadop-kernel-dev-3bdad3c7ee72a76ec87be3477eb958ed7ca304fc.zip
op-kernel-dev-3bdad3c7ee72a76ec87be3477eb958ed7ca304fc.tar.gz
f2fs: skip to check the block address of node page
If the node page is up-to-date, it should be alive. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index ca1bb3c..9d994b9 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1080,6 +1080,9 @@ static int read_node_page(struct page *page, int rw)
.encrypted_page = NULL,
};
+ if (PageUptodate(page))
+ return LOCKED_PAGE;
+
get_node_info(sbi, page->index, &ni);
if (unlikely(ni.blk_addr == NULL_ADDR)) {
@@ -1087,9 +1090,6 @@ static int read_node_page(struct page *page, int rw)
return -ENOENT;
}
- if (PageUptodate(page))
- return LOCKED_PAGE;
-
fio.new_blkaddr = fio.old_blkaddr = ni.blk_addr;
return f2fs_submit_page_bio(&fio);
}
OpenPOWER on IntegriCloud