blob: 8c3e9319ec4efe455709f1ac5fb63a45302e4833 [file] [log] [blame]
David Sterba9888c342018-04-03 19:16:55 +02001/* SPDX-License-Identifier: GPL-2.0 */
Chris Mason6cbd5572007-06-12 09:07:21 -04002/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
Chris Mason6cbd5572007-06-12 09:07:21 -04004 */
5
David Sterba9888c342018-04-03 19:16:55 +02006#ifndef BTRFS_PRINT_TREE_H
7#define BTRFS_PRINT_TREE_H
8
Josef Bacik457f1862020-09-03 14:29:51 -04009/* Buffer size to contain tree name and possibly additional data (offset) */
10#define BTRFS_ROOT_NAME_BUF_LEN 48
11
David Sterbaa4f78752017-06-29 18:37:49 +020012void btrfs_print_leaf(struct extent_buffer *l);
Qu Wenruoc08723232018-04-11 17:08:12 +080013void btrfs_print_tree(struct extent_buffer *c, bool follow);
Josef Bacik71008732020-12-16 11:18:44 -050014const char *btrfs_root_name(const struct btrfs_key *key, char *buf);
David Sterba9888c342018-04-03 19:16:55 +020015
Chris Masone089f052007-03-16 16:20:31 -040016#endif