From a30579b1a7a73dd547330d4bfade3bee64145ef5 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Tue, 13 Jun 2017 17:19:18 +0800 Subject: btrfs-progs: Refactor btrfs_num_copies to use btrfs_fs_info Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- volumes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'volumes.c') diff --git a/volumes.c b/volumes.c index 1ff90f0c..89e39e43 100644 --- a/volumes.c +++ b/volumes.c @@ -1215,8 +1215,9 @@ int btrfs_alloc_data_chunk(struct btrfs_trans_handle *trans, return ret; } -int btrfs_num_copies(struct btrfs_mapping_tree *map_tree, u64 logical, u64 len) +int btrfs_num_copies(struct btrfs_fs_info *fs_info, u64 logical, u64 len) { + struct btrfs_mapping_tree *map_tree = &fs_info->mapping_tree; struct cache_extent *ce; struct map_lookup *map; int ret; -- cgit v1.2.3