diff options
author | Filipe Manana <fdmanana@suse.com> | 2025-09-10 19:10:37 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-09-23 09:49:22 +0300 |
commit | 93f818e62a081c707e6833f3ba2b7fa25c90199c (patch) | |
tree | 016773ce956199d50207b00d39e6860c4d5df2ea /fs/btrfs/print-tree.c | |
parent | 96fb032238d9bede9d3ade60047b8d604fcb4363 (diff) | |
download | linux-93f818e62a081c707e6833f3ba2b7fa25c90199c.tar.xz |
btrfs: print-tree: print dir items for dir index and xattr keys too
Currently we only print the dir items for BTRFS_DIR_ITEM_KEY keys, but
we also have dir items for BTRFS_DIR_INDEX_KEY and BTRFS_XATTR_ITEM_KEY
keys too. So print them for those keys too.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index df7fe10061ab..5ae611cb3f2e 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c @@ -315,6 +315,8 @@ void btrfs_print_leaf(const struct extent_buffer *l) print_inode_item(l, i); break; case BTRFS_DIR_ITEM_KEY: + case BTRFS_DIR_INDEX_KEY: + case BTRFS_XATTR_ITEM_KEY: print_dir_item(l, i); break; case BTRFS_ROOT_ITEM_KEY: |