diff options
author | Wang Shilong <wangsl-fnst@cn.fujitsu.com> | 2013-02-06 01:14:26 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2013-02-06 07:47:02 -0500 |
commit | 98783e453c1084527388ec1a7f6367cd6aabbe63 (patch) | |
tree | 6a08492fbcb4c54cb32f6a584d7382f56669ff4b /fs | |
parent | 288be96de66fa7c09f2cf00a7793db5b4bac4213 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext2/balloc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c index 2616d0ea5c5c..ea88181932df 100644 --- a/fs/ext2/balloc.c +++ b/fs/ext2/balloc.c | |||
@@ -1239,10 +1239,6 @@ ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, | |||
1239 | 1239 | ||
1240 | *errp = -ENOSPC; | 1240 | *errp = -ENOSPC; |
1241 | sb = inode->i_sb; | 1241 | sb = inode->i_sb; |
1242 | if (!sb) { | ||
1243 | printk("ext2_new_blocks: nonexistent device"); | ||
1244 | return 0; | ||
1245 | } | ||
1246 | 1242 | ||
1247 | /* | 1243 | /* |
1248 | * Check quota for allocation of this block. | 1244 | * Check quota for allocation of this block. |