Skip to content

Commit 5ef2a69

Browse files
Wang Shilongtytso
authored andcommitted
ext4: use ext4_warning() for sb_getblk failure
Out of memory should not be considered as critical errors; so replace ext4_error() with ext4_warnig(). Signed-off-by: Wang Shilong <wshilong@ddn.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@vger.kernel.org
1 parent 9af0b3d commit 5ef2a69

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎fs/ext4/balloc.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ ext4_read_block_bitmap_nowait(struct super_block *sb, ext4_group_t block_group)
426426
}
427427
bh = sb_getblk(sb, bitmap_blk);
428428
if (unlikely(!bh)) {
429-
ext4_error(sb, "Cannot get buffer for block bitmap - "
430-
"block_group = %u, block_bitmap = %llu",
431-
block_group, bitmap_blk);
429+
ext4_warning(sb, "Cannot get buffer for block bitmap - "
430+
"block_group = %u, block_bitmap = %llu",
431+
block_group, bitmap_blk);
432432
return ERR_PTR(-ENOMEM);
433433
}
434434

‎fs/ext4/ialloc.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group)
138138
}
139139
bh = sb_getblk(sb, bitmap_blk);
140140
if (unlikely(!bh)) {
141-
ext4_error(sb, "Cannot read inode bitmap - "
142-
"block_group = %u, inode_bitmap = %llu",
143-
block_group, bitmap_blk);
141+
ext4_warning(sb, "Cannot read inode bitmap - "
142+
"block_group = %u, inode_bitmap = %llu",
143+
block_group, bitmap_blk);
144144
return ERR_PTR(-ENOMEM);
145145
}
146146
if (bitmap_uptodate(bh))

0 commit comments

Comments
 (0)