f2fs: remove redundant call to set_blocksize in f2fs_fill_super
authorNamjae Jeon <namjae.jeon@samsung.com>
Sat, 12 Jan 2013 05:41:13 +0000 (14:41 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 14 Jan 2013 00:41:30 +0000 (09:41 +0900)
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>
fs/f2fs/super.c

index 0f2b2eb86a059126e6ba8263199d7f93df477f92..ac127fde8e113627267681e9e0927bc7fe3c5001 100644 (file)
@@ -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;
@@ -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 */