aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 352083ad233c..1c1cf216be80 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -7143,7 +7143,7 @@ int btrfs_can_relocate(struct btrfs_root *root, u64 bytenr)
7143 * space to fit our block group in. 7143 * space to fit our block group in.
7144 */ 7144 */
7145 if (device->total_bytes > device->bytes_used + min_free) { 7145 if (device->total_bytes > device->bytes_used + min_free) {
7146 ret = find_free_dev_extent(NULL, device, min_free, 7146 ret = find_free_dev_extent(device, min_free,
7147 &dev_offset, NULL); 7147 &dev_offset, NULL);
7148 if (!ret) 7148 if (!ret)
7149 dev_nr++; 7149 dev_nr++;
@@ -7505,6 +7505,7 @@ int btrfs_make_block_group(struct btrfs_trans_handle *trans,
7505 ret = update_space_info(root->fs_info, cache->flags, size, bytes_used, 7505 ret = update_space_info(root->fs_info, cache->flags, size, bytes_used,
7506 &cache->space_info); 7506 &cache->space_info);
7507 BUG_ON(ret); 7507 BUG_ON(ret);
7508 update_global_block_rsv(root->fs_info);
7508 7509
7509 spin_lock(&cache->space_info->lock); 7510 spin_lock(&cache->space_info->lock);
7510 cache->space_info->bytes_readonly += cache->bytes_super; 7511 cache->space_info->bytes_readonly += cache->bytes_super;