aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGu Zheng <guz.fnst@cn.fujitsu.com>2013-08-09 06:21:24 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-08-11 22:49:22 -0400
commit41dfde135f9169948dd0c9bba948774f2e521210 (patch)
treeab1496d2f2179ebdc3840507b8cd480f98b3df1e
parentd71b5564c0da4f652af2e4ca9d3c22b9c960ec1f (diff)
f2fs: clean up the needless end 'return' of void function
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
-rw-r--r--fs/f2fs/data.c1
-rw-r--r--fs/f2fs/node.c1
-rw-r--r--fs/f2fs/segment.c4
-rw-r--r--fs/f2fs/super.c1
4 files changed, 0 insertions, 7 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index a7eb52925723..ea3cb29018e9 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -176,7 +176,6 @@ void update_extent_cache(block_t blk_addr, struct dnode_of_data *dn)
176end_update: 176end_update:
177 write_unlock(&fi->ext.ext_lock); 177 write_unlock(&fi->ext.ext_lock);
178 sync_inode_page(dn); 178 sync_inode_page(dn);
179 return;
180} 179}
181 180
182struct page *find_data_page(struct inode *inode, pgoff_t index, bool sync) 181struct page *find_data_page(struct inode *inode, pgoff_t index, bool sync)
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index f5172e271d46..bb8fbda43669 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -916,7 +916,6 @@ void ra_node_page(struct f2fs_sb_info *sbi, nid_t nid)
916 f2fs_put_page(apage, 0); 916 f2fs_put_page(apage, 0);
917 else if (err == LOCKED_PAGE) 917 else if (err == LOCKED_PAGE)
918 f2fs_put_page(apage, 1); 918 f2fs_put_page(apage, 1);
919 return;
920} 919}
921 920
922struct page *get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid) 921struct page *get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid)
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index 68e344f9e042..9c45b8ee6881 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -117,7 +117,6 @@ static void locate_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno)
117 } 117 }
118 118
119 mutex_unlock(&dirty_i->seglist_lock); 119 mutex_unlock(&dirty_i->seglist_lock);
120 return;
121} 120}
122 121
123/* 122/*
@@ -261,7 +260,6 @@ static void __add_sum_entry(struct f2fs_sb_info *sbi, int type,
261 void *addr = curseg->sum_blk; 260 void *addr = curseg->sum_blk;
262 addr += curseg->next_blkoff * sizeof(struct f2fs_summary); 261 addr += curseg->next_blkoff * sizeof(struct f2fs_summary);
263 memcpy(addr, sum, sizeof(struct f2fs_summary)); 262 memcpy(addr, sum, sizeof(struct f2fs_summary));
264 return;
265} 263}
266 264
267/* 265/*
@@ -559,7 +557,6 @@ out:
559#ifdef CONFIG_F2FS_STAT_FS 557#ifdef CONFIG_F2FS_STAT_FS
560 sbi->segment_count[curseg->alloc_type]++; 558 sbi->segment_count[curseg->alloc_type]++;
561#endif 559#endif
562 return;
563} 560}
564 561
565void allocate_new_segments(struct f2fs_sb_info *sbi) 562void 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{ 1189{
1193 if (is_set_ckpt_flags(F2FS_CKPT(sbi), CP_UMOUNT_FLAG)) 1190 if (is_set_ckpt_flags(F2FS_CKPT(sbi), CP_UMOUNT_FLAG))
1194 write_normal_summaries(sbi, start_blk, CURSEG_HOT_NODE); 1191 write_normal_summaries(sbi, start_blk, CURSEG_HOT_NODE);
1195 return;
1196} 1192}
1197 1193
1198int lookup_journal_in_cursum(struct f2fs_summary_block *sum, int type, 1194int lookup_journal_in_cursum(struct f2fs_summary_block *sum, int type,
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 66d1ec137e44..1d12e60c00d9 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -317,7 +317,6 @@ static int f2fs_drop_inode(struct inode *inode)
317static void f2fs_dirty_inode(struct inode *inode, int flags) 317static void f2fs_dirty_inode(struct inode *inode, int flags)
318{ 318{
319 set_inode_flag(F2FS_I(inode), FI_DIRTY_INODE); 319 set_inode_flag(F2FS_I(inode), FI_DIRTY_INODE);
320 return;
321} 320}
322 321
323static void f2fs_i_callback(struct rcu_head *head) 322static void f2fs_i_callback(struct rcu_head *head)