aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2011-10-02 13:56:53 +0300
committerDavid Sterba <dsterba@suse.cz>2011-10-20 18:10:46 +0200
commit10b2f34d6e7fbe07f498cb2006272e9a561f5e60 (patch)
tree157a5cd82158e1b9a21423e06e8f074e4654b456 /fs/btrfs/extent-tree.c
parentfee187d9d9ddc382c81370a9a280391132dea2e1 (diff)
downloadkernel_goldelico_gta04-10b2f34d6e7fbe07f498cb2006272e9a561f5e60.zip
kernel_goldelico_gta04-10b2f34d6e7fbe07f498cb2006272e9a561f5e60.tar.gz
kernel_goldelico_gta04-10b2f34d6e7fbe07f498cb2006272e9a561f5e60.tar.bz2
Btrfs: pass the correct root to lookup_free_space_inode()
Free space items are located in tree of tree roots, not in the extent tree. It didn't pop up because lookup_free_space_inode() grabs the inode all the time instead of actually searching the tree. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 4eb7d2b..6cfcc90 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -7312,7 +7312,7 @@ int btrfs_remove_block_group(struct btrfs_trans_handle *trans,
goto out;
}
- inode = lookup_free_space_inode(root, block_group, path);
+ inode = lookup_free_space_inode(tree_root, block_group, path);
if (!IS_ERR(inode)) {
ret = btrfs_orphan_add(trans, inode);
BUG_ON(ret);