Skip to content

Commit

Permalink
f2fs: remove the unused argument "sbi" of func destroy_fsync_dnodes()
Browse files Browse the repository at this point in the history
As destroy_fsync_dnodes() is a simple list-cleanup func, so delete the unused
and unrelated f2fs_sb_info argument of it.

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
  • Loading branch information
Gu Zheng authored and Jaegeuk Kim committed Jul 1, 2013
1 parent 763bfe1 commit 5ebefc5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/f2fs/recovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head)
return err;
}

static void destroy_fsync_dnodes(struct f2fs_sb_info *sbi,
struct list_head *head)
static void destroy_fsync_dnodes(struct list_head *head)
{
struct fsync_inode_entry *entry, *tmp;

Expand Down Expand Up @@ -438,7 +437,7 @@ int recover_fsync_data(struct f2fs_sb_info *sbi)
err = recover_data(sbi, &inode_list, CURSEG_WARM_NODE);
BUG_ON(!list_empty(&inode_list));
out:
destroy_fsync_dnodes(sbi, &inode_list);
destroy_fsync_dnodes(&inode_list);
kmem_cache_destroy(fsync_entry_slab);
sbi->por_doing = 0;
if (!err)
Expand Down

0 comments on commit 5ebefc5

Please sign in to comment.