diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2017-06-13 17:19:19 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-07-12 17:52:37 +0200 |
commit | 824a300ec8e984281acf4a8d8fc04eeb06c06d9d (patch) | |
tree | 3eabd3402281bb3755e323e2a34c0813f230aa88 /volumes.c | |
parent | a30579b1a7a73dd547330d4bfade3bee64145ef5 (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.c')
-rw-r--r-- | volumes.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1252,9 +1252,10 @@ int btrfs_num_copies(struct btrfs_fs_info *fs_info, u64 logical, u64 len) return ret; } -int btrfs_next_bg(struct btrfs_mapping_tree *map_tree, u64 *logical, - u64 *size, u64 type) +int btrfs_next_bg(struct btrfs_fs_info *fs_info, u64 *logical, + u64 *size, u64 type) { + struct btrfs_mapping_tree *map_tree = &fs_info->mapping_tree; struct cache_extent *ce; struct map_lookup *map; u64 cur = *logical; |