mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
![Qu Wenruo](/assets/img/avatar_default.png)
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>
16 lines
468 B
C
16 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
|