Skip to content

Commit

Permalink
f2fs: remove redundant call to set_blocksize in f2fs_fill_super
Browse files Browse the repository at this point in the history
Since, f2fs supports only 4KB blocksize, which is set at the beginning in
f2fs_fill_super. So, we do not need to again check this blocksize setting
in such case.

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>
  • Loading branch information
Namjae Jeon authored and Jaegeuk Kim committed Jan 14, 2013
1 parent 9eaeba7 commit ff9234a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fs/f2fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
if (!sbi)
return -ENOMEM;

/* set a temporary block size */
/* set a block size */
if (!sb_set_blocksize(sb, F2FS_BLKSIZE)) {
f2fs_msg(sb, KERN_ERR, "unable to set blocksize");
goto free_sbi;
Expand Down Expand Up @@ -542,10 +542,6 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
INIT_LIST_HEAD(&sbi->dir_inode_list);
spin_lock_init(&sbi->dir_inode_lock);

/* init super block */
if (!sb_set_blocksize(sb, sbi->blocksize))
goto free_cp;

init_orphan_info(sbi);

/* setup f2fs internal modules */
Expand Down

0 comments on commit ff9234a

Please sign in to comment.