summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2019-06-20 15:37:51 -0400
committerDavid Sterba <dsterba@suse.com>2019-09-09 14:59:04 +0200
commitcaa4efafcf037d3881436f2b7ad818cdacebb8a1 (patch)
treea83fa59ef19fca74d5effb471bca7a8a7f8638b8 /fs/btrfs/extent-tree.c
parente3cb339fa5ca57cfa5429bf3da548331dce93038 (diff)
downloadlinux-stable-caa4efafcf037d3881436f2b7ad818cdacebb8a1.tar.gz
linux-stable-caa4efafcf037d3881436f2b7ad818cdacebb8a1.tar.bz2
linux-stable-caa4efafcf037d3881436f2b7ad818cdacebb8a1.zip
btrfs: temporarily export fragment_free_space
This is used in caching and reading block groups, so export it while we move these chunks independently. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index dab8e90237cd..6cae152a4812 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -206,7 +206,7 @@ void btrfs_put_caching_control(struct btrfs_caching_control *ctl)
}
#ifdef CONFIG_BTRFS_DEBUG
-static void fragment_free_space(struct btrfs_block_group_cache *block_group)
+void btrfs_fragment_free_space(struct btrfs_block_group_cache *block_group)
{
struct btrfs_fs_info *fs_info = block_group->fs_info;
u64 start = block_group->key.objectid;
@@ -443,7 +443,7 @@ static noinline void caching_thread(struct btrfs_work *work)
block_group->space_info->bytes_used += bytes_used >> 1;
spin_unlock(&block_group->lock);
spin_unlock(&block_group->space_info->lock);
- fragment_free_space(block_group);
+ btrfs_fragment_free_space(block_group);
}
#endif
@@ -550,7 +550,7 @@ int btrfs_cache_block_group(struct btrfs_block_group_cache *cache,
cache->space_info->bytes_used += bytes_used >> 1;
spin_unlock(&cache->lock);
spin_unlock(&cache->space_info->lock);
- fragment_free_space(cache);
+ btrfs_fragment_free_space(cache);
}
#endif
mutex_unlock(&caching_ctl->mutex);
@@ -7968,7 +7968,7 @@ int btrfs_make_block_group(struct btrfs_trans_handle *trans, u64 bytes_used,
u64 new_bytes_used = size - bytes_used;
bytes_used += new_bytes_used >> 1;
- fragment_free_space(cache);
+ btrfs_fragment_free_space(cache);
}
#endif
/*