Skip to contentSkip to conversation

f2fs: reorganize code for ra_node_page

PATCH In review Namjae Jeon 1 participant 1 message Jan 30, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 f2fs: reorganize code for ra_node_page

From: Namjae Jeon <[email protected]>

We can remove unneeded label unlock_out, avoid unnecessary jump and reorganize the returning conditions in this function.

---
 fs/f2fs/node.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
fs/f2fs/node.c +2 -6
index 9bda63c..f71dfbb 100644
@@ -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)
Signature · 1 line
1.7.9.5