]> www.infradead.org Git - nvme.git/commit
btrfs: print-tree: add generation and type dump for EXTENT_DATA_KEY
authorQu Wenruo <wqu@suse.com>
Mon, 24 Jun 2024 04:58:54 +0000 (14:28 +0930)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:28 +0000 (15:33 +0200)
commite2c1887329086148625fef5205719112ceb4a829
treef8ddbf611f7eaee35b8ea883392566f032ddb28a
parent0e962e755b2684185ec37c75d91df56e076782ec
btrfs: print-tree: add generation and type dump for EXTENT_DATA_KEY

When debugging the recent ram_bytes mismatch bug, I can hit it with
enhanced tree-checker for file extent items at write time.

But the bug is not that easy to trigger (mostly triggered with
btrfs/06*, which uses 20 threads fsstress), and when I hit it, the only
info is the kernel leaf dump, but it doesn't include things like the
file extent type (REGULAR or PREALLOC).

Add the dump for generation and type (although only numeric output) to
make debugging a little easier.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/print-tree.c