diff options
author | Chung-Chiang Cheng <cccheng@synology.com> | 2024-01-12 15:41:05 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-01-18 23:35:50 +0100 |
commit | f398e70dd69e6ceea71463a5380e6118f219197e (patch) | |
tree | 18fae26cc7e454a556aba4176cfa7db5a739939f /fs/btrfs/tree-checker.c | |
parent | 1e7f6def8b2370ecefb54b3c8f390ff894b0c51b (diff) | |
download | linux-stable-f398e70dd69e6ceea71463a5380e6118f219197e.tar.gz linux-stable-f398e70dd69e6ceea71463a5380e6118f219197e.tar.bz2 linux-stable-f398e70dd69e6ceea71463a5380e6118f219197e.zip |
btrfs: tree-checker: fix inline ref size in error messages
The error message should accurately reflect the size rather than the
type.
Fixes: f82d1c7ca8ae ("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>
Diffstat (limited to 'fs/btrfs/tree-checker.c')
-rw-r--r-- | fs/btrfs/tree-checker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c index 50fdc69fdddf..6eccf8496486 100644 --- a/fs/btrfs/tree-checker.c +++ b/fs/btrfs/tree-checker.c @@ -1436,7 +1436,7 @@ static int check_extent_item(struct extent_buffer *leaf, if (unlikely(ptr + btrfs_extent_inline_ref_size(inline_type) > end)) { extent_err(leaf, slot, "inline ref item overflows extent item, ptr %lu iref size %u end %lu", - ptr, inline_type, end); + ptr, btrfs_extent_inline_ref_size(inline_type), end); return -EUCLEAN; } |