Btrfs: don't re-enter when allocating a chunk
[firefly-linux-kernel-4.4.55.git] / fs / btrfs / transaction.c
index 86bb105b39822799477727b9afad9cabc1239d16..24fde97cba81ddc04fd6551e2d50343aea1a436b 100644 (file)
@@ -385,6 +385,7 @@ again:
        h->qgroup_reserved = qgroup_reserved;
        h->delayed_ref_elem.seq = 0;
        h->type = type;
+       h->allocating_chunk = false;
        INIT_LIST_HEAD(&h->qgroup_ref_list);
        INIT_LIST_HEAD(&h->new_bgs);