diff options
Diffstat (limited to 'fs/ext3/resize.c')
-rw-r--r-- | fs/ext3/resize.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/ext3/resize.c b/fs/ext3/resize.c index 0f814f3450de..27105655502c 100644 --- a/fs/ext3/resize.c +++ b/fs/ext3/resize.c | |||
@@ -116,8 +116,8 @@ static struct buffer_head *bclean(handle_t *handle, struct super_block *sb, | |||
116 | int err; | 116 | int err; |
117 | 117 | ||
118 | bh = sb_getblk(sb, blk); | 118 | bh = sb_getblk(sb, blk); |
119 | if (!bh) | 119 | if (unlikely(!bh)) |
120 | return ERR_PTR(-EIO); | 120 | return ERR_PTR(-ENOMEM); |
121 | if ((err = ext3_journal_get_write_access(handle, bh))) { | 121 | if ((err = ext3_journal_get_write_access(handle, bh))) { |
122 | brelse(bh); | 122 | brelse(bh); |
123 | bh = ERR_PTR(err); | 123 | bh = ERR_PTR(err); |
@@ -234,8 +234,8 @@ static int setup_new_group_blocks(struct super_block *sb, | |||
234 | goto exit_bh; | 234 | goto exit_bh; |
235 | 235 | ||
236 | gdb = sb_getblk(sb, block); | 236 | gdb = sb_getblk(sb, block); |
237 | if (!gdb) { | 237 | if (unlikely(!gdb)) { |
238 | err = -EIO; | 238 | err = -ENOMEM; |
239 | goto exit_bh; | 239 | goto exit_bh; |
240 | } | 240 | } |
241 | if ((err = ext3_journal_get_write_access(handle, gdb))) { | 241 | if ((err = ext3_journal_get_write_access(handle, gdb))) { |
@@ -722,8 +722,8 @@ static void update_backups(struct super_block *sb, | |||
722 | break; | 722 | break; |
723 | 723 | ||
724 | bh = sb_getblk(sb, group * bpg + blk_off); | 724 | bh = sb_getblk(sb, group * bpg + blk_off); |
725 | if (!bh) { | 725 | if (unlikely(!bh)) { |
726 | err = -EIO; | 726 | err = -ENOMEM; |
727 | break; | 727 | break; |
728 | } | 728 | } |
729 | ext3_debug("update metadata backup %#04lx\n", | 729 | ext3_debug("update metadata backup %#04lx\n", |