diff options
author | 2019-03-20 13:16:42 +0800 | |
---|---|---|
committer | 2019-04-29 19:02:31 +0200 | |
commit | 82fc28fbedbb59642f05215db3b0ef4eb91aa31d (patch) | |
tree | f08805db55881de91c4816d8dc33a7e546cdcad2 /fs/btrfs/tree-checker.h | |
parent | btrfs: qgroup: remove obsolete fs_info members (diff) | |
download | linux-82fc28fbedbb59642f05215db3b0ef4eb91aa31d.tar.gz linux-82fc28fbedbb59642f05215db3b0ef4eb91aa31d.tar.bz2 linux-82fc28fbedbb59642f05215db3b0ef4eb91aa31d.zip |
btrfs: Move btrfs_check_chunk_valid() to tree-check.[ch] and export it
By function, chunk item verification is more suitable to be done inside
tree-checker.
So move btrfs_check_chunk_valid() to tree-checker.c and export it.
And since it's now moved to tree-checker, also add a better comment for
what this function is doing.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-checker.h')
-rw-r--r-- | fs/btrfs/tree-checker.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/tree-checker.h b/fs/btrfs/tree-checker.h index ff043275b784..4df45e8a6659 100644 --- a/fs/btrfs/tree-checker.h +++ b/fs/btrfs/tree-checker.h @@ -25,4 +25,8 @@ int btrfs_check_leaf_relaxed(struct btrfs_fs_info *fs_info, struct extent_buffer *leaf); int btrfs_check_node(struct btrfs_fs_info *fs_info, struct extent_buffer *node); +int btrfs_check_chunk_valid(struct btrfs_fs_info *fs_info, + struct extent_buffer *leaf, + struct btrfs_chunk *chunk, u64 logical); + #endif |