提交 a2b52a59 编写于 作者: N Namjae Jeon 提交者: Jaegeuk Kim

f2fs: reorganize code for ra_node_page

We can remove unneeded label unlock_out, avoid unnecessary jump
and reorganize the returning conditions in this function.
Signed-off-by: NNamjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: NAmit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: NJaegeuk Kim <jaegeuk.kim@samsung.com>
上级 3786dfdf
......@@ -874,15 +874,11 @@ void ra_node_page(struct f2fs_sb_info *sbi, nid_t nid)
return;
if (read_node_page(apage, READA))
goto unlock_out;
unlock_page(apage);
page_cache_release(apage);
return;
unlock_out:
unlock_page(apage);
release_out:
page_cache_release(apage);
return;
}
struct page *get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册