Merge branch 'bug-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs...
Chris Mason [Fri, 29 Oct 2010 13:27:49 +0000 (09:27 -0400)]
Conflicts:
fs/btrfs/extent-tree.c

Signed-off-by: Chris Mason <chris.mason@oracle.com>

1  2 
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/relocation.c
fs/btrfs/super.c
fs/btrfs/transaction.c

Simple merge
@@@ -8389,10 -8122,9 +8423,11 @@@ int btrfs_remove_block_group(struct btr
        struct btrfs_path *path;
        struct btrfs_block_group_cache *block_group;
        struct btrfs_free_cluster *cluster;
 +      struct btrfs_root *tree_root = root->fs_info->tree_root;
        struct btrfs_key key;
 +      struct inode *inode;
        int ret;
+       int factor;
  
        root = root->fs_info->extent_root;
  
        spin_lock(&block_group->space_info->lock);
        block_group->space_info->total_bytes -= block_group->key.offset;
        block_group->space_info->bytes_readonly -= block_group->key.offset;
+       block_group->space_info->disk_total -= block_group->key.offset * factor;
        spin_unlock(&block_group->space_info->lock);
  
 +      memcpy(&key, &block_group->key, sizeof(key));
 +
        btrfs_clear_space_info_full(root->fs_info);
  
        btrfs_put_block_group(block_group);
Simple merge
Simple merge
Simple merge
Simple merge