diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2011-10-02 06:56:53 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2011-10-20 12:10:46 -0400 |
commit | 10b2f34d6e7fbe07f498cb2006272e9a561f5e60 (patch) | |
tree | 157a5cd82158e1b9a21423e06e8f074e4654b456 /fs/btrfs/extent-tree.c | |
parent | fee187d9d9ddc382c81370a9a280391132dea2e1 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 4eb7d2ba38f8..6cfcc9060c83 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, | |||
7312 | goto out; | 7312 | goto out; |
7313 | } | 7313 | } |
7314 | 7314 | ||
7315 | inode = lookup_free_space_inode(root, block_group, path); | 7315 | inode = lookup_free_space_inode(tree_root, block_group, path); |
7316 | if (!IS_ERR(inode)) { | 7316 | if (!IS_ERR(inode)) { |
7317 | ret = btrfs_orphan_add(trans, inode); | 7317 | ret = btrfs_orphan_add(trans, inode); |
7318 | BUG_ON(ret); | 7318 | BUG_ON(ret); |