diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2013-01-12 14:41:13 +0900 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-06-05 21:19:54 +0200 |
commit | 5f000a6494037ca6ad2e2a33b5865acc0966d4aa (patch) | |
tree | af2251a4c1c776602ac8f7161efad7ca6d45b74e /fs | |
parent | f04151f88626627e455c971727c04cbb74f479cc (diff) | |
download | kernel_samsung_espresso10-5f000a6494037ca6ad2e2a33b5865acc0966d4aa.zip kernel_samsung_espresso10-5f000a6494037ca6ad2e2a33b5865acc0966d4aa.tar.gz kernel_samsung_espresso10-5f000a6494037ca6ad2e2a33b5865acc0966d4aa.tar.bz2 |
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')
-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 de5217f..13368f7 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) 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 */ |