aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/block-group.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2019-06-20 15:37:45 -0400
committerDavid Sterba <dsterba@suse.com>2019-09-09 14:59:04 +0200
commit2e405ad842546a1a37aaa586d5140d071cb1f802 (patch)
tree42299ec8e870e4953d7b5b6a498d61ed652f3d33 /fs/btrfs/block-group.h
parentbtrfs: move basic block_group definitions to their own header (diff)
downloadlinux-dev-2e405ad842546a1a37aaa586d5140d071cb1f802.tar.xz
linux-dev-2e405ad842546a1a37aaa586d5140d071cb1f802.zip
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>
Diffstat (limited to 'fs/btrfs/block-group.h')
-rw-r--r--fs/btrfs/block-group.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h
index 054745007519..87bac0d5ad69 100644
--- a/fs/btrfs/block-group.h
+++ b/fs/btrfs/block-group.h
@@ -151,4 +151,11 @@ static inline int btrfs_should_fragment_free_space(
}
#endif
+struct btrfs_block_group_cache *btrfs_lookup_first_block_group(
+ struct btrfs_fs_info *info, u64 bytenr);
+struct btrfs_block_group_cache *btrfs_lookup_block_group(
+ struct btrfs_fs_info *info, u64 bytenr);
+struct btrfs_block_group_cache *btrfs_next_block_group(
+ struct btrfs_block_group_cache *cache);
+
#endif /* BTRFS_BLOCK_GROUP_H */