diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index b53104042e954f493aee84965072567a040a6d47..2ce9115a55fde82ddf492ff5bef2783a5036ef01 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -549,11 +549,8 @@ start_transaction(struct btrfs_root *root, unsigned int num_items, } } while (ret == -EBUSY); - if (ret < 0) { - /* We must get the transaction if we are JOIN_NOLOCK. */ - BUG_ON(type == TRANS_JOIN_NOLOCK); + if (ret < 0) goto join_fail; - } cur_trans = root->fs_info->running_transaction;