btrfs: migrate the block group lookup code
authorJosef Bacik <josef@toxicpanda.com>
Thu, 20 Jun 2019 19:37:45 +0000 (15:37 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:04 +0000 (14:59 +0200)
commit2e405ad842546a1a37aaa586d5140d071cb1f802
tree42299ec8e870e4953d7b5b6a498d61ed652f3d33
parentaac0023c2106952538414254960c51dcf0dc39e9
btrfs: migrate the block group lookup code

Move these bits first as they are the easiest to move.  Export two of
the helpers so they can be moved all at once.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ minor style updates ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/Makefile
fs/btrfs/block-group.c [new file with mode: 0644]
fs/btrfs/block-group.h
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c