aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2012-01-16 15:26:17 -0500
committerChris Mason <chris.mason@oracle.com>2012-01-16 15:26:17 -0500
commitd756bd2d9339447c29bde950910586df8f8941ec (patch)
treef96aeb682bcc4fdcf75d080f260c809b9fbc4a1a /fs/btrfs/extent-tree.c
parent27263e28321db438bc43dc0c0be432ce91526224 (diff)
parentb367e47fb3a70f5d24ebd6faf7d42436d485fb2d (diff)
Merge branch 'for-chris' of git://repo.or.cz/linux-btrfs-devel into integration
Conflicts: fs/btrfs/volumes.c Signed-off-by: Chris Mason <chris.mason@oracle.com>
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;