diff options
| author | Filipe Manana <fdmanana@suse.com> | 2025-09-15 11:54:49 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-09-23 08:49:22 +0200 |
| commit | caac17073760d30a879517145f033a72eee507ae (patch) | |
| tree | d89d9d0df883a65eda860966cde53ddac2b5a385 /fs/btrfs/print-tree.c | |
| parent | c1b9a4782bc6b9169be6b721b161781696cbd1a7 (diff) | |
| download | linux-caac17073760d30a879517145f033a72eee507ae.tar.gz linux-caac17073760d30a879517145f033a72eee507ae.tar.bz2 linux-caac17073760d30a879517145f033a72eee507ae.zip | |
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>
Diffstat (limited to 'fs/btrfs/print-tree.c')
| -rw-r--r-- | fs/btrfs/print-tree.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index 835b41874a7a..417e3860cd25 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c @@ -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, |
