Skip to content

Commit f398e70

Browse files
ccchengkdave
authored andcommitted
btrfs: tree-checker: fix inline ref size in error messages
The error message should accurately reflect the size rather than the type. Fixes: f82d1c7 ("btrfs: tree-checker: Add EXTENT_ITEM and METADATA_ITEM check") CC: stable@vger.kernel.org # 5.4+ Reviewed-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Chung-Chiang Cheng <cccheng@synology.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 1e7f6de commit f398e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/tree-checker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ static int check_extent_item(struct extent_buffer *leaf,
14361436
if (unlikely(ptr + btrfs_extent_inline_ref_size(inline_type) > end)) {
14371437
extent_err(leaf, slot,
14381438
"inline ref item overflows extent item, ptr %lu iref size %u end %lu",
1439-
ptr, inline_type, end);
1439+
ptr, btrfs_extent_inline_ref_size(inline_type), end);
14401440
return -EUCLEAN;
14411441
}
14421442

0 commit comments

Comments
 (0)