From 0544aafcbf48a8b70090cc515b9d130bac10554e Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Tue, 13 Jun 2017 17:19:35 +0800 Subject: btrfs-progs: Refactor chunk creation functions to use btrfs_fs_info 4 functions are involved in this refactor: btrfs_make_block_group() btrfs_make_block_groups(), btrfs_alloc_chunk, btrfs_alloc_data_chunk(). Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- ctree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ctree.h') diff --git a/ctree.h b/ctree.h index cf337ae5..48ae8903 100644 --- a/ctree.h +++ b/ctree.h @@ -2498,11 +2498,11 @@ struct btrfs_block_group_cache * btrfs_add_block_group(struct btrfs_fs_info *fs_info, u64 bytes_used, u64 type, u64 chunk_objectid, u64 chunk_offset, u64 size); int btrfs_make_block_group(struct btrfs_trans_handle *trans, - struct btrfs_root *root, u64 bytes_used, + struct btrfs_fs_info *fs_info, u64 bytes_used, u64 type, u64 chunk_objectid, u64 chunk_offset, u64 size); int btrfs_make_block_groups(struct btrfs_trans_handle *trans, - struct btrfs_root *root); + struct btrfs_fs_info *fs_info); int btrfs_update_block_group(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytenr, u64 num, int alloc, int mark_free); -- cgit v1.2.3