forked from Minki/linux
ext4: remove redundant code in ext4_fill_super()
The previous sb_min_blocksize() has already set the block size. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Mingming Cao <cmm@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
530576bbf3
commit
f9a8ac99fd
@ -1899,11 +1899,6 @@ static int ext4_fill_super (struct super_block *sb, void *data, int silent)
|
||||
goto out_fail;
|
||||
}
|
||||
|
||||
if (!sb_set_blocksize(sb, blocksize)) {
|
||||
printk(KERN_ERR "EXT4-fs: bad blocksize %d.\n", blocksize);
|
||||
goto out_fail;
|
||||
}
|
||||
|
||||
/*
|
||||
* The ext4 superblock will not be buffer aligned for other than 1kB
|
||||
* block sizes. We need to calculate the offset from buffer start.
|
||||
|
Loading…
Reference in New Issue
Block a user