David Sterba | 9888c34 | 2018-04-03 19:16:55 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Chris Mason | 6cbd557 | 2007-06-12 09:07:21 -0400 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2007 Oracle. All rights reserved. |
Chris Mason | 6cbd557 | 2007-06-12 09:07:21 -0400 | [diff] [blame] | 4 | */ |
| 5 | |
David Sterba | 9888c34 | 2018-04-03 19:16:55 +0200 | [diff] [blame] | 6 | #ifndef BTRFS_PRINT_TREE_H |
| 7 | #define BTRFS_PRINT_TREE_H |
| 8 | |
Josef Bacik | 457f186 | 2020-09-03 14:29:51 -0400 | [diff] [blame] | 9 | /* Buffer size to contain tree name and possibly additional data (offset) */ |
| 10 | #define BTRFS_ROOT_NAME_BUF_LEN 48 |
| 11 | |
David Sterba | a4f7875 | 2017-06-29 18:37:49 +0200 | [diff] [blame] | 12 | void btrfs_print_leaf(struct extent_buffer *l); |
Qu Wenruo | c0872323 | 2018-04-11 17:08:12 +0800 | [diff] [blame] | 13 | void btrfs_print_tree(struct extent_buffer *c, bool follow); |
Josef Bacik | 7100873 | 2020-12-16 11:18:44 -0500 | [diff] [blame] | 14 | const char *btrfs_root_name(const struct btrfs_key *key, char *buf); |
David Sterba | 9888c34 | 2018-04-03 19:16:55 +0200 | [diff] [blame] | 15 | |
Chris Mason | e089f05 | 2007-03-16 16:20:31 -0400 | [diff] [blame] | 16 | #endif |