summaryrefslogtreecommitdiff
path: root/volumes.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2017-06-13 17:19:19 +0800
committerDavid Sterba <dsterba@suse.com>2017-07-12 17:52:37 +0200
commit824a300ec8e984281acf4a8d8fc04eeb06c06d9d (patch)
tree3eabd3402281bb3755e323e2a34c0813f230aa88 /volumes.h
parenta30579b1a7a73dd547330d4bfade3bee64145ef5 (diff)
btrfs-progs: Refactor btrfs_next_bg and its callers to use btrfs_fs_info
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'volumes.h')
-rw-r--r--volumes.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/volumes.h b/volumes.h
index 26d88813..6f164e7f 100644
--- a/volumes.h
+++ b/volumes.h
@@ -187,18 +187,18 @@ int btrfs_map_block(struct btrfs_fs_info *fs_info, int rw,
u64 logical, u64 *length,
struct btrfs_multi_bio **multi_ret, int mirror_num,
u64 **raid_map_ret);
-int btrfs_next_bg(struct btrfs_mapping_tree *map_tree, u64 *logical,
+int btrfs_next_bg(struct btrfs_fs_info *map_tree, u64 *logical,
u64 *size, u64 type);
-static inline int btrfs_next_bg_metadata(struct btrfs_mapping_tree *map_tree,
- u64 *logical, u64 *size)
+static inline int btrfs_next_bg_metadata(struct btrfs_fs_info *fs_info,
+ u64 *logical, u64 *size)
{
- return btrfs_next_bg(map_tree, logical, size,
+ return btrfs_next_bg(fs_info, logical, size,
BTRFS_BLOCK_GROUP_METADATA);
}
-static inline int btrfs_next_bg_system(struct btrfs_mapping_tree *map_tree,
- u64 *logical, u64 *size)
+static inline int btrfs_next_bg_system(struct btrfs_fs_info *fs_info,
+ u64 *logical, u64 *size)
{
- return btrfs_next_bg(map_tree, logical, size,
+ return btrfs_next_bg(fs_info, logical, size,
BTRFS_BLOCK_GROUP_SYSTEM);
}
int btrfs_rmap_block(struct btrfs_fs_info *fs_info,