aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/extent-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index df472ab1b5ac..3915155ba274 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -7355,6 +7355,7 @@ int btrfs_drop_snapshot(struct btrfs_root *root,
7355 while (1) { 7355 while (1) {
7356 btrfs_tree_lock(path->nodes[level]); 7356 btrfs_tree_lock(path->nodes[level]);
7357 btrfs_set_lock_blocking(path->nodes[level]); 7357 btrfs_set_lock_blocking(path->nodes[level]);
7358 path->locks[level] = BTRFS_WRITE_LOCK_BLOCKING;
7358 7359
7359 ret = btrfs_lookup_extent_info(trans, root, 7360 ret = btrfs_lookup_extent_info(trans, root,
7360 path->nodes[level]->start, 7361 path->nodes[level]->start,
@@ -7370,6 +7371,7 @@ int btrfs_drop_snapshot(struct btrfs_root *root,
7370 break; 7371 break;
7371 7372
7372 btrfs_tree_unlock(path->nodes[level]); 7373 btrfs_tree_unlock(path->nodes[level]);
7374 path->locks[level] = 0;
7373 WARN_ON(wc->refs[level] != 1); 7375 WARN_ON(wc->refs[level] != 1);
7374 level--; 7376 level--;
7375 } 7377 }