19888c340SDavid Sterba /* SPDX-License-Identifier: GPL-2.0 */ 26cbd5570SChris Mason /* 36cbd5570SChris Mason * Copyright (C) 2007 Oracle. All rights reserved. 46cbd5570SChris Mason */ 56cbd5570SChris Mason 69888c340SDavid Sterba #ifndef BTRFS_PRINT_TREE_H 79888c340SDavid Sterba #define BTRFS_PRINT_TREE_H 89888c340SDavid Sterba 9457f1864SJosef Bacik /* Buffer size to contain tree name and possibly additional data (offset) */ 10457f1864SJosef Bacik #define BTRFS_ROOT_NAME_BUF_LEN 48 11457f1864SJosef Bacik 12*6c75a589SQu Wenruo void btrfs_print_leaf(const struct extent_buffer *l); 13*6c75a589SQu Wenruo void btrfs_print_tree(const struct extent_buffer *c, bool follow); 1471008734SJosef Bacik const char *btrfs_root_name(const struct btrfs_key *key, char *buf); 159888c340SDavid Sterba 16e089f05cSChris Mason #endif 17