Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Wang Shilong and committed by
Theodore Ts'o
5ef2a699 9af0b3d1

+6 -6
+3 -3
fs/ext4/balloc.c
··· 426 426 } 427 427 bh = sb_getblk(sb, bitmap_blk); 428 428 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); 432 432 return ERR_PTR(-ENOMEM); 433 433 } 434 434
+3 -3
fs/ext4/ialloc.c
··· 138 138 } 139 139 bh = sb_getblk(sb, bitmap_blk); 140 140 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); 144 144 return ERR_PTR(-ENOMEM); 145 145 } 146 146 if (bitmap_uptodate(bh))