Btrfs: nuke fs wide allocation mutex V2
[linux-2.6-block.git] / fs / btrfs / tree-defrag.c
index 6f57d0889b1ed8e63f1f39178f005d4c65b8d0a3..a6a3956cedfbda1c68f17c3232f497a7607bf621 100644 (file)
@@ -125,9 +125,6 @@ int btrfs_defrag_leaves(struct btrfs_trans_handle *trans,
        if (is_extent)
                btrfs_extent_post_op(trans, root);
 out:
-       if (is_extent)
-               mutex_unlock(&root->fs_info->alloc_mutex);
-
        if (path)
                btrfs_free_path(path);
        if (ret == -EAGAIN) {