aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/ctree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index bd0ae3ec76ff..783ea3bac7dc 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -2792,8 +2792,6 @@ again:
2792 if (!should_cow_block(trans, root, b)) 2792 if (!should_cow_block(trans, root, b))
2793 goto cow_done; 2793 goto cow_done;
2794 2794
2795 btrfs_set_path_blocking(p);
2796
2797 /* 2795 /*
2798 * must have write locks on this node and the 2796 * must have write locks on this node and the
2799 * parent 2797 * parent
@@ -2807,6 +2805,7 @@ again:
2807 goto again; 2805 goto again;
2808 } 2806 }
2809 2807
2808 btrfs_set_path_blocking(p);
2810 err = btrfs_cow_block(trans, root, b, 2809 err = btrfs_cow_block(trans, root, b,
2811 p->nodes[level + 1], 2810 p->nodes[level + 1],
2812 p->slots[level + 1], &b); 2811 p->slots[level + 1], &b);