summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ialloc.c
diff options
context:
space:
mode:
authorWang Shilong <wshilong@ddn.com>2018-08-01 12:02:31 -0400
committerTheodore Ts'o <tytso@mit.edu>2018-08-01 12:02:31 -0400
commit5ef2a69993676a0dfd49bf60ae1323eb8a288366 (patch)
tree5d0c3757d20aa8c7c2d14ff15d082e5fdd04f346 /fs/ext4/ialloc.c
parent9af0b3d1257756394ebbd06b14937b557e3a756b (diff)
downloadlinux-5ef2a69993676a0dfd49bf60ae1323eb8a288366.tar.gz
linux-5ef2a69993676a0dfd49bf60ae1323eb8a288366.tar.bz2
linux-5ef2a69993676a0dfd49bf60ae1323eb8a288366.zip
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
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r--fs/ext4/ialloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
index dffd21de2694..2addcb8730e1 100644
--- a/fs/ext4/ialloc.c
+++ b/fs/ext4/ialloc.c
@@ -138,9 +138,9 @@ ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group)
}
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))