mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
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: Wang Shilong <wangsl-fnst@cn.fujitsu.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
288be96de6
commit
98783e453c
@ -1239,10 +1239,6 @@ ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal,
|
|||||||
|
|
||||||
*errp = -ENOSPC;
|
*errp = -ENOSPC;
|
||||||
sb = inode->i_sb;
|
sb = inode->i_sb;
|
||||||
if (!sb) {
|
|
||||||
printk("ext2_new_blocks: nonexistent device");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check quota for allocation of this block.
|
* Check quota for allocation of this block.
|
||||||
|
Loading…
Reference in New Issue
Block a user