btrfs: Move btrfs_check_chunk_valid() to tree-check.[ch] and export it
authorQu Wenruo <wqu@suse.com>
Wed, 20 Mar 2019 05:16:42 +0000 (13:16 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:31 +0000 (19:02 +0200)
commit82fc28fbedbb59642f05215db3b0ef4eb91aa31d
treef08805db55881de91c4816d8dc33a7e546cdcad2
parent90b1377daa9633973d595487d717d43d3c601420
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>
fs/btrfs/tree-checker.c
fs/btrfs/tree-checker.h
fs/btrfs/volumes.c