summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-12-19 18:38:44 +0100
committerChris Mason <clm@fb.com>2015-01-21 18:02:03 -0800
commitf0954c66377b1610a512fd05f4d33afa54441c3b (patch)
treecb9cbb110a88145d8c575d3a3f2ad4e3e1033aef
parentaa8ee31209d644a3f4716cb0c43aba7889fbef31 (diff)
downloadlinux-f0954c66377b1610a512fd05f4d33afa54441c3b.tar.gz
linux-f0954c66377b1610a512fd05f4d33afa54441c3b.tar.bz2
linux-f0954c66377b1610a512fd05f4d33afa54441c3b.zip
btrfs: update message levels after checksum errors
The errors are worth noting and might get missed with INFO level. Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r--fs/btrfs/disk-io.c2
-rw-r--r--fs/btrfs/inode.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 7ff24cbcf656..20da68206fba 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -318,7 +318,7 @@ static int csum_tree_block(struct btrfs_root *root, struct extent_buffer *buf,
memcpy(&found, result, csum_size);
read_extent_buffer(buf, &val, 0, csum_size);
- printk_ratelimited(KERN_INFO
+ printk_ratelimited(KERN_WARNING
"BTRFS: %s checksum verify failed on %llu wanted %X found %X "
"level %d\n",
root->fs_info->sb->s_id, buf->start,
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 29892ebc798b..5e529208ffea 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2945,7 +2945,7 @@ static int __readpage_endio_check(struct inode *inode,
return 0;
zeroit:
if (__ratelimit(&_rs))
- btrfs_info(BTRFS_I(inode)->root->fs_info,
+ btrfs_warn(BTRFS_I(inode)->root->fs_info,
"csum failed ino %llu off %llu csum %u expected csum %u",
btrfs_ino(inode), start, csum, csum_expected);
memset(kaddr + pgoff, 1, len);