Skip to content

Commit 93f818e

Browse files
fdmananakdave
authored andcommitted
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>
1 parent 96fb032 commit 93f818e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/btrfs/print-tree.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ void btrfs_print_leaf(const struct extent_buffer *l)
315315
print_inode_item(l, i);
316316
break;
317317
case BTRFS_DIR_ITEM_KEY:
318+
case BTRFS_DIR_INDEX_KEY:
319+
case BTRFS_XATTR_ITEM_KEY:
318320
print_dir_item(l, i);
319321
break;
320322
case BTRFS_ROOT_ITEM_KEY:

0 commit comments

Comments
 (0)