提交 41dfde13 编写于 作者: G Gu Zheng 提交者: Jaegeuk Kim

f2fs: clean up the needless end 'return' of void function

Signed-off-by: NGu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: NJaegeuk Kim <jaegeuk.kim@samsung.com>
上级 d71b5564
...@@ -176,7 +176,6 @@ void update_extent_cache(block_t blk_addr, struct dnode_of_data *dn) ...@@ -176,7 +176,6 @@ void update_extent_cache(block_t blk_addr, struct dnode_of_data *dn)
end_update: end_update:
write_unlock(&fi->ext.ext_lock); write_unlock(&fi->ext.ext_lock);
sync_inode_page(dn); sync_inode_page(dn);
return;
} }
struct page *find_data_page(struct inode *inode, pgoff_t index, bool sync) struct page *find_data_page(struct inode *inode, pgoff_t index, bool sync)
......
...@@ -916,7 +916,6 @@ void ra_node_page(struct f2fs_sb_info *sbi, nid_t nid) ...@@ -916,7 +916,6 @@ void ra_node_page(struct f2fs_sb_info *sbi, nid_t nid)
f2fs_put_page(apage, 0); f2fs_put_page(apage, 0);
else if (err == LOCKED_PAGE) else if (err == LOCKED_PAGE)
f2fs_put_page(apage, 1); f2fs_put_page(apage, 1);
return;
} }
struct page *get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid) struct page *get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid)
......
...@@ -117,7 +117,6 @@ static void locate_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno) ...@@ -117,7 +117,6 @@ static void locate_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno)
} }
mutex_unlock(&dirty_i->seglist_lock); mutex_unlock(&dirty_i->seglist_lock);
return;
} }
/* /*
...@@ -261,7 +260,6 @@ static void __add_sum_entry(struct f2fs_sb_info *sbi, int type, ...@@ -261,7 +260,6 @@ static void __add_sum_entry(struct f2fs_sb_info *sbi, int type,
void *addr = curseg->sum_blk; void *addr = curseg->sum_blk;
addr += curseg->next_blkoff * sizeof(struct f2fs_summary); addr += curseg->next_blkoff * sizeof(struct f2fs_summary);
memcpy(addr, sum, sizeof(struct f2fs_summary)); memcpy(addr, sum, sizeof(struct f2fs_summary));
return;
} }
/* /*
...@@ -559,7 +557,6 @@ static void allocate_segment_by_default(struct f2fs_sb_info *sbi, ...@@ -559,7 +557,6 @@ static void allocate_segment_by_default(struct f2fs_sb_info *sbi,
#ifdef CONFIG_F2FS_STAT_FS #ifdef CONFIG_F2FS_STAT_FS
sbi->segment_count[curseg->alloc_type]++; sbi->segment_count[curseg->alloc_type]++;
#endif #endif
return;
} }
void allocate_new_segments(struct f2fs_sb_info *sbi) void allocate_new_segments(struct f2fs_sb_info *sbi)
...@@ -1192,7 +1189,6 @@ void write_node_summaries(struct f2fs_sb_info *sbi, block_t start_blk) ...@@ -1192,7 +1189,6 @@ void write_node_summaries(struct f2fs_sb_info *sbi, block_t start_blk)
{ {
if (is_set_ckpt_flags(F2FS_CKPT(sbi), CP_UMOUNT_FLAG)) if (is_set_ckpt_flags(F2FS_CKPT(sbi), CP_UMOUNT_FLAG))
write_normal_summaries(sbi, start_blk, CURSEG_HOT_NODE); write_normal_summaries(sbi, start_blk, CURSEG_HOT_NODE);
return;
} }
int lookup_journal_in_cursum(struct f2fs_summary_block *sum, int type, int lookup_journal_in_cursum(struct f2fs_summary_block *sum, int type,
......
...@@ -317,7 +317,6 @@ static int f2fs_drop_inode(struct inode *inode) ...@@ -317,7 +317,6 @@ static int f2fs_drop_inode(struct inode *inode)
static void f2fs_dirty_inode(struct inode *inode, int flags) static void f2fs_dirty_inode(struct inode *inode, int flags)
{ {
set_inode_flag(F2FS_I(inode), FI_DIRTY_INODE); set_inode_flag(F2FS_I(inode), FI_DIRTY_INODE);
return;
} }
static void f2fs_i_callback(struct rcu_head *head) static void f2fs_i_callback(struct rcu_head *head)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册