diff options
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/super.c | 2 | ||||
-rw-r--r-- | fs/ext2/xattr.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index fa04d023177e..7f68c8114026 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -1500,7 +1500,7 @@ static ssize_t ext2_quota_write(struct super_block *sb, int type, | |||
1500 | bh = sb_bread(sb, tmp_bh.b_blocknr); | 1500 | bh = sb_bread(sb, tmp_bh.b_blocknr); |
1501 | else | 1501 | else |
1502 | bh = sb_getblk(sb, tmp_bh.b_blocknr); | 1502 | bh = sb_getblk(sb, tmp_bh.b_blocknr); |
1503 | if (!bh) { | 1503 | if (unlikely(!bh)) { |
1504 | err = -EIO; | 1504 | err = -EIO; |
1505 | goto out; | 1505 | goto out; |
1506 | } | 1506 | } |
diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index b6754dbbce3c..06209ec46152 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c | |||
@@ -662,7 +662,7 @@ ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh, | |||
662 | ea_idebug(inode, "creating block %d", block); | 662 | ea_idebug(inode, "creating block %d", block); |
663 | 663 | ||
664 | new_bh = sb_getblk(sb, block); | 664 | new_bh = sb_getblk(sb, block); |
665 | if (!new_bh) { | 665 | if (unlikely(!new_bh)) { |
666 | ext2_free_blocks(inode, block, 1); | 666 | ext2_free_blocks(inode, block, 1); |
667 | mark_inode_dirty(inode); | 667 | mark_inode_dirty(inode); |
668 | error = -EIO; | 668 | error = -EIO; |