]>
Commit | Line | Data |
---|---|---|
9888c340 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
557ea5dd QW |
2 | /* |
3 | * Copyright (C) Qu Wenruo 2017. All rights reserved. | |
557ea5dd QW |
4 | */ |
5 | ||
9888c340 DS |
6 | #ifndef BTRFS_TREE_CHECKER_H |
7 | #define BTRFS_TREE_CHECKER_H | |
557ea5dd QW |
8 | |
9 | #include "ctree.h" | |
10 | #include "extent_io.h" | |
11 | ||
69fc6cbb QW |
12 | /* |
13 | * Comprehensive leaf checker. | |
14 | * Will check not only the item pointers, but also every possible member | |
15 | * in item data. | |
16 | */ | |
2f659546 QW |
17 | int btrfs_check_leaf_full(struct btrfs_fs_info *fs_info, |
18 | struct extent_buffer *leaf); | |
69fc6cbb QW |
19 | |
20 | /* | |
21 | * Less strict leaf checker. | |
22 | * Will only check item pointers, not reading item data. | |
23 | */ | |
2f659546 | 24 | int btrfs_check_leaf_relaxed(struct btrfs_fs_info *fs_info, |
69fc6cbb | 25 | struct extent_buffer *leaf); |
2f659546 | 26 | int btrfs_check_node(struct btrfs_fs_info *fs_info, struct extent_buffer *node); |
557ea5dd QW |
27 | |
28 | #endif |