]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: print-tree: print key types as human readable strings
authorFilipe Manana <fdmanana@suse.com>
Mon, 15 Sep 2025 15:23:04 +0000 (16:23 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:23 +0000 (08:49 +0200)
commit26baec69ac85d6ce899ae9c43827250551e494f2
tree6c03981173563c0d004079ea34bbfca8fdf652d9
parent00b7eaaaa5ac1d686f8f5edc2f999710304236dc
btrfs: print-tree: print key types as human readable strings

Looking at a leaf dump from the kernel's print-tree implementation is not
so friendly to analyze since key types are printed as numbers. Improve on
this by printing key types as strings that are a diminutive of the macro
names for key types, just like we do in 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>
fs/btrfs/print-tree.c