mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 08:35:08 +08:00
6c75a589cb
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>
17 lines
468 B
C
17 lines
468 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2007 Oracle. All rights reserved.
|
|
*/
|
|
|
|
#ifndef BTRFS_PRINT_TREE_H
|
|
#define BTRFS_PRINT_TREE_H
|
|
|
|
/* Buffer size to contain tree name and possibly additional data (offset) */
|
|
#define BTRFS_ROOT_NAME_BUF_LEN 48
|
|
|
|
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
|