aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-06-25 16:01:30 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commit333db94cdde9e6dfdedab9290d04d812f83e0922 (patch)
treef4925bc36a8f4177d5a4f3a303ae47f3ea592b60 /fs/btrfs/ctree.c
parent5cd57b2cbbb06a350df2698314e4e6a80805fc2f (diff)
Btrfs: Fix snapshot deletion to release the alloc_mutex much more often.
This lowers the impact of snapshot deletion on the rest of the FS. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index fd68601b60b1..5edbcc09b3cc 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -1255,7 +1255,7 @@ int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root
1255 lowest_level = p->lowest_level; 1255 lowest_level = p->lowest_level;
1256 WARN_ON(lowest_level && ins_len); 1256 WARN_ON(lowest_level && ins_len);
1257 WARN_ON(p->nodes[0] != NULL); 1257 WARN_ON(p->nodes[0] != NULL);
1258 WARN_ON(root == root->fs_info->extent_root && 1258 WARN_ON(cow && root == root->fs_info->extent_root &&
1259 !mutex_is_locked(&root->fs_info->alloc_mutex)); 1259 !mutex_is_locked(&root->fs_info->alloc_mutex));
1260 WARN_ON(root == root->fs_info->chunk_root && 1260 WARN_ON(root == root->fs_info->chunk_root &&
1261 !mutex_is_locked(&root->fs_info->chunk_mutex)); 1261 !mutex_is_locked(&root->fs_info->chunk_mutex));