mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-09 02:57:42 -04:00
btrfs: print-tree: print compression type for file extent items
We are not printing anything about the compression type, so add that useful information in the same format as 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>
This commit is contained in:
committed by
David Sterba
parent
c1b9a4782b
commit
caac170737
@@ -424,9 +424,10 @@ void btrfs_print_leaf(const struct extent_buffer *l)
|
||||
btrfs_file_extent_type(l, fi));
|
||||
if (btrfs_file_extent_type(l, fi) ==
|
||||
BTRFS_FILE_EXTENT_INLINE) {
|
||||
pr_info("\t\tinline extent data size %u ram_bytes %llu\n",
|
||||
pr_info("\t\tinline extent data size %u ram_bytes %llu compression %hhu\n",
|
||||
btrfs_file_extent_inline_item_len(l, i),
|
||||
btrfs_file_extent_ram_bytes(l, fi));
|
||||
btrfs_file_extent_ram_bytes(l, fi),
|
||||
btrfs_file_extent_compression(l, fi));
|
||||
break;
|
||||
}
|
||||
pr_info("\t\textent data disk bytenr %llu nr %llu\n",
|
||||
@@ -436,6 +437,8 @@ void btrfs_print_leaf(const struct extent_buffer *l)
|
||||
btrfs_file_extent_offset(l, fi),
|
||||
btrfs_file_extent_num_bytes(l, fi),
|
||||
btrfs_file_extent_ram_bytes(l, fi));
|
||||
pr_info("\t\textent compression %hhu\n",
|
||||
btrfs_file_extent_compression(l, fi));
|
||||
break;
|
||||
case BTRFS_BLOCK_GROUP_ITEM_KEY:
|
||||
bi = btrfs_item_ptr(l, i,
|
||||
|
||||
Reference in New Issue
Block a user