]> git.hungrycats.org Git - linux/commitdiff
btrfs: update message levels after checksum errors
authorDavid Sterba <dsterba@suse.cz>
Fri, 19 Dec 2014 17:38:44 +0000 (18:38 +0100)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Sun, 8 Mar 2015 04:04:20 +0000 (23:04 -0500)
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>
(cherry picked from commit f0954c66377b1610a512fd05f4d33afa54441c3b)

fs/btrfs/disk-io.c
fs/btrfs/inode.c

index 7457a8ca461670a10dae878a97901fa780e574cc..01b0fa92c8fe37e6029a9beb03b87a88db90fcf4 100644 (file)
@@ -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,
index 716550648a4af15e5bbbab20c56545be287bcccc..a38d6908ccfab08b8b4e2531de92d8cdd103398d 100644 (file)
@@ -2926,7 +2926,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);