]> Gentwo Git Trees - linux/.git/commit
btrfs: print-tree: print correct inline extent data size
authorFilipe Manana <fdmanana@suse.com>
Mon, 15 Sep 2025 10:37:34 +0000 (11:37 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:22 +0000 (08:49 +0200)
commitc1b9a4782bc6b9169be6b721b161781696cbd1a7
treeba5878d48863126adc64b302cbfd908af3f41b57
parent4dc1c3d0ae6fbfaf8ce5727d1ae098275eb276c6
btrfs: print-tree: print correct inline extent data size

We are advertising the ram_bytes of an inline extent as its data size, but
that is not true for compressed extents. The ram_bytes corresponds to the
uncompressed data size while the data size (compressed data) is given by
btrfs_file_extent_inline_item_len(). So fix this and print both values in
the same format as in btrfs-progs.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/print-tree.c