projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2555a2d
)
f2fs: skip to check the block address of node page
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 1 Jul 2016 02:04:16 +0000
(19:04 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 8 Jul 2016 17:33:31 +0000
(10:33 -0700)
If the node page is up-to-date, it should be alive.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/node.c
b/fs/f2fs/node.c
index ca1bb3cc6c32b5ecac355a171c70ffab0688b1a9..9d994b97e61f8bbff5aa2a9e81aca895649e2682 100644
(file)
--- 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);
}