btrfs: print-tree: pass const extent buffer pointer
authorQu Wenruo <wqu@suse.com>
Thu, 27 Apr 2023 12:16:27 +0000 (20:16 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:22 +0000 (13:59 +0200)
commit6c75a589cb35b8ea5cf9a22f389981acf687ab85
treeac0c16b38fbe3ac72bab786aa8e80ed114555ee5
parentb5345d6ceeee3ef378e4800f538c8fc06bf9de48
btrfs: print-tree: pass const extent buffer pointer

Since print-tree infrastructure only prints the content of a tree block,
we can make them to accept const extent buffer pointer.

This removes a forced type convert in extent-tree, where we convert a
const extent buffer pointer to regular one, just to avoid compiler
warning.

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/ctree.c
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/print-tree.c
fs/btrfs/print-tree.h