btrfs: print-tree: debugging output enhancement
authorQu Wenruo <wqu@suse.com>
Wed, 11 Apr 2018 09:08:12 +0000 (17:08 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 20 Apr 2018 17:18:16 +0000 (19:18 +0200)
commitc0872323746e11fc79344e3738b283a8cda86654
tree07864870a0ec520d578d181d97f58e48d75ddd91
parent5e388e95815408c27f3612190d089afc0774b870
btrfs: print-tree: debugging output enhancement

This patch enhances the following things:

- tree block header
  * add generation and owner output for node and leaf
- node pointer generation output
- allow btrfs_print_tree() to not follow nodes
  * just like btrfs-progs

Please note that, although function btrfs_print_tree() is not called by
anyone right now, it's still a pretty useful function to debug kernel.
So that function is still kept for later use.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/print-tree.c
fs/btrfs/print-tree.h