Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0954c66 authored by David Sterba's avatar David Sterba Committed by Chris Mason
Browse files

btrfs: update message levels after checksum errors



The errors are worth noting and might get missed with INFO level.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent aa8ee312
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -318,7 +318,7 @@ static int csum_tree_block(struct btrfs_root *root, struct extent_buffer *buf,
			memcpy(&found, result, csum_size);
			memcpy(&found, result, csum_size);


			read_extent_buffer(buf, &val, 0, 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 "
				"BTRFS: %s checksum verify failed on %llu wanted %X found %X "
				"level %d\n",
				"level %d\n",
				root->fs_info->sb->s_id, buf->start,
				root->fs_info->sb->s_id, buf->start,
+1 −1
Original line number Original line Diff line number Diff line
@@ -2945,7 +2945,7 @@ static int __readpage_endio_check(struct inode *inode,
	return 0;
	return 0;
zeroit:
zeroit:
	if (__ratelimit(&_rs))
	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",
			   "csum failed ino %llu off %llu csum %u expected csum %u",
			   btrfs_ino(inode), start, csum, csum_expected);
			   btrfs_ino(inode), start, csum, csum_expected);
	memset(kaddr + pgoff, 1, len);
	memset(kaddr + pgoff, 1, len);