summaryrefslogtreecommitdiff
path: root/fs/btrfs/print-tree.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2023-04-27 15:16:27 +0300
committerDavid Sterba <dsterba@suse.com>2023-06-19 14:59:22 +0300
commit6c75a589cb35b8ea5cf9a22f389981acf687ab85 (patch)
treeac0c16b38fbe3ac72bab786aa8e80ed114555ee5 /fs/btrfs/print-tree.h
parentb5345d6ceeee3ef378e4800f538c8fc06bf9de48 (diff)
downloadlinux-6c75a589cb35b8ea5cf9a22f389981acf687ab85.tar.xz
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>
Diffstat (limited to 'fs/btrfs/print-tree.h')
-rw-r--r--fs/btrfs/print-tree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/print-tree.h b/fs/btrfs/print-tree.h
index 8c3e9319ec4e..c42bc666d5ee 100644
--- a/fs/btrfs/print-tree.h
+++ b/fs/btrfs/print-tree.h
@@ -9,8 +9,8 @@
/* Buffer size to contain tree name and possibly additional data (offset) */
#define BTRFS_ROOT_NAME_BUF_LEN 48
-void btrfs_print_leaf(struct extent_buffer *l);
-void btrfs_print_tree(struct extent_buffer *c, bool follow);
+void btrfs_print_leaf(const struct extent_buffer *l);
+void btrfs_print_tree(const struct extent_buffer *c, bool follow);
const char *btrfs_root_name(const struct btrfs_key *key, char *buf);
#endif