Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9a8ac99 authored by Li Zefan's avatar Li Zefan Committed by Theodore Ts'o
Browse files

ext4: remove redundant code in ext4_fill_super()



The previous sb_min_blocksize() has already set the block size.

Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarMingming Cao <cmm@us.ibm.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 530576bb
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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.