Skip to content

Commit 58b3aa3

Browse files
Namjae JeonHashcode
authored andcommitted
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: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
1 parent 92c97b7 commit 58b3aa3

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

fs/f2fs/node.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -874,15 +874,11 @@ void ra_node_page(struct f2fs_sb_info *sbi, nid_t nid)
874874
return;
875875

876876
if (read_node_page(apage, READA))
877-
goto unlock_out;
877+
unlock_page(apage);
878878

879-
page_cache_release(apage);
880-
return;
881-
882-
unlock_out:
883-
unlock_page(apage);
884879
release_out:
885880
page_cache_release(apage);
881+
return;
886882
}
887883

888884
struct page *get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid)

0 commit comments

Comments
 (0)