From: Wang Shilong <wshilong@xxxxxxx> out of memory should not be considered as critical errors, replace ext4_warnig() instead of ext4_error() for it. Signed-off-by: Wang Shilong <wshilong@xxxxxxx> --- fs/ext4/balloc.c | 6 +++--- fs/ext4/ialloc.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index e3feeae..5fe63ff 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c @@ -428,9 +428,9 @@ struct buffer_head * } bh = sb_getblk(sb, bitmap_blk); if (unlikely(!bh)) { - ext4_error(sb, "Cannot get buffer for block bitmap - " - "block_group = %u, block_bitmap = %llu", - block_group, bitmap_blk); + ext4_warning(sb, "Cannot get buffer for block bitmap - " + "block_group = %u, block_bitmap = %llu", + block_group, bitmap_blk); return ERR_PTR(-ENOMEM); } diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index b7f7299..787b613 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c @@ -135,9 +135,9 @@ static int ext4_validate_inode_bitmap(struct super_block *sb, } bh = sb_getblk(sb, bitmap_blk); if (unlikely(!bh)) { - ext4_error(sb, "Cannot read inode bitmap - " - "block_group = %u, inode_bitmap = %llu", - block_group, bitmap_blk); + ext4_warning(sb, "Cannot read inode bitmap - " + "block_group = %u, inode_bitmap = %llu", + block_group, bitmap_blk); return ERR_PTR(-ENOMEM); } if (bitmap_uptodate(bh)) -- 1.8.3.1