1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) Qu Wenruo 2017. All rights reserved.
6 #ifndef BTRFS_TREE_CHECKER_H
7 #define BTRFS_TREE_CHECKER_H
10 #include "extent_io.h"
13 * Comprehensive leaf checker.
14 * Will check not only the item pointers, but also every possible member
17 int btrfs_check_leaf_full(struct btrfs_fs_info *fs_info,
18 struct extent_buffer *leaf);
21 * Less strict leaf checker.
22 * Will only check item pointers, not reading item data.
24 int btrfs_check_leaf_relaxed(struct btrfs_fs_info *fs_info,
25 struct extent_buffer *leaf);
26 int btrfs_check_node(struct btrfs_fs_info *fs_info, struct extent_buffer *node);
28 int btrfs_check_chunk_valid(struct btrfs_fs_info *fs_info,
29 struct extent_buffer *leaf,
30 struct btrfs_chunk *chunk, u64 logical);