diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2013-01-12 00:41:13 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-01-13 19:41:30 -0500 |
commit | ff9234ad4e974768455071c91bd76402e4af8a28 (patch) | |
tree | c635cace47fc5efe2f05bcd4c7a734b9f5580d91 /fs/f2fs/super.c | |
parent | 9eaeba701386037cdd2ccd8bf8650feb2e2cec31 (diff) |
f2fs: remove redundant call to set_blocksize in f2fs_fill_super
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>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r-- | fs/f2fs/super.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 0f2b2eb86a05..ac127fde8e11 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c | |||
@@ -443,7 +443,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) | |||
443 | if (!sbi) | 443 | if (!sbi) |
444 | return -ENOMEM; | 444 | return -ENOMEM; |
445 | 445 | ||
446 | /* set a temporary block size */ | 446 | /* set a block size */ |
447 | if (!sb_set_blocksize(sb, F2FS_BLKSIZE)) { | 447 | if (!sb_set_blocksize(sb, F2FS_BLKSIZE)) { |
448 | f2fs_msg(sb, KERN_ERR, "unable to set blocksize"); | 448 | f2fs_msg(sb, KERN_ERR, "unable to set blocksize"); |
449 | goto free_sbi; | 449 | goto free_sbi; |
@@ -542,10 +542,6 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) | |||
542 | INIT_LIST_HEAD(&sbi->dir_inode_list); | 542 | INIT_LIST_HEAD(&sbi->dir_inode_list); |
543 | spin_lock_init(&sbi->dir_inode_lock); | 543 | spin_lock_init(&sbi->dir_inode_lock); |
544 | 544 | ||
545 | /* init super block */ | ||
546 | if (!sb_set_blocksize(sb, sbi->blocksize)) | ||
547 | goto free_cp; | ||
548 | |||
549 | init_orphan_info(sbi); | 545 | init_orphan_info(sbi); |
550 | 546 | ||
551 | /* setup f2fs internal modules */ | 547 | /* setup f2fs internal modules */ |