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

Commit 98783e45 authored by Wang Shilong's avatar Wang Shilong Committed by Jan Kara
Browse files

Ext2: remove the overhead check about sb in the function ext2_new_blocks



It can be guranteed that inode->i_sb should not be null in vfs.
So here the check about it is overhead.

Signed-off-by: default avatarWang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 288be96d
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1239,10 +1239,6 @@ ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal,

	*errp = -ENOSPC;
	sb = inode->i_sb;
	if (!sb) {
		printk("ext2_new_blocks: nonexistent device");
		return 0;
	}

	/*
	 * Check quota for allocation of this block.