Source
1
+
/* SPDX-License-Identifier: GPL-2.0 */
1
2
/*
2
3
* Copyright (C) Qu Wenruo 2017. All rights reserved.
3
-
*
4
-
* This program is free software; you can redistribute it and/or
5
-
* modify it under the terms of the GNU General Public
6
-
* License v2 as published by the Free Software Foundation.
7
-
*
8
-
* This program is distributed in the hope that it will be useful,
9
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
-
* General Public License for more details.
12
-
*
13
-
* You should have received a copy of the GNU General Public
14
-
* License along with this program.
15
4
*/
16
5
17
-
#ifndef __BTRFS_TREE_CHECKER__
18
-
#define __BTRFS_TREE_CHECKER__
6
+
#ifndef BTRFS_TREE_CHECKER_H
7
+
#define BTRFS_TREE_CHECKER_H
19
8
20
9
#include "ctree.h"
21
10
#include "extent_io.h"
22
11
23
12
/*
24
13
* Comprehensive leaf checker.
25
14
* Will check not only the item pointers, but also every possible member
26
15
* in item data.
27
16
*/
28
17
int btrfs_check_leaf_full(struct btrfs_fs_info *fs_info,