btrfs: send: fix crash when memory allocations trigger reclaim
[sfrench/cifs-2.6.git] / fs / btrfs / qgroup.c
index d72885903b8c9ec65753bf2c4fa166b9ff25ce93..07ec06d4e972635c2922d9727e395a8320772324 100644 (file)
@@ -3545,13 +3545,7 @@ static int try_flush_qgroup(struct btrfs_root *root)
        struct btrfs_trans_handle *trans;
        int ret;
 
-       /*
-        * Can't hold an open transaction or we run the risk of deadlocking,
-        * and can't either be under the context of a send operation (where
-        * current->journal_info is set to BTRFS_SEND_TRANS_STUB), as that
-        * would result in a crash when starting a transaction and does not
-        * make sense either (send is a read-only operation).
-        */
+       /* Can't hold an open transaction or we run the risk of deadlocking. */
        ASSERT(current->journal_info == NULL);
        if (WARN_ON(current->journal_info))
                return 0;