xref: /OK3568_Linux_fs/kernel/fs/btrfs/print-tree.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) 2007 Oracle.  All rights reserved.
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun #ifndef BTRFS_PRINT_TREE_H
7*4882a593Smuzhiyun #define BTRFS_PRINT_TREE_H
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun /* Buffer size to contain tree name and possibly additional data (offset) */
10*4882a593Smuzhiyun #define BTRFS_ROOT_NAME_BUF_LEN				48
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun void btrfs_print_leaf(struct extent_buffer *l);
13*4882a593Smuzhiyun void btrfs_print_tree(struct extent_buffer *c, bool follow);
14*4882a593Smuzhiyun const char *btrfs_root_name(const struct btrfs_key *key, char *buf);
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #endif
17