]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - libxfs/trans.c
xfs: replace xfs_defer_ops ->dop_pending with on-stack list
[thirdparty/xfsprogs-dev.git] / libxfs / trans.c
index 4121af59814e12335708157f2aaff72a5ed4901d..9e6883bc432836b6c59d277b856da2a210d9ded0 100644 (file)
@@ -995,7 +995,7 @@ __xfs_trans_commit(
         * Finish deferred items on final commit. Only permanent transactions
         * should ever have deferred ops.
         */
-       WARN_ON_ONCE(xfs_defer_has_unfinished_work(tp) &&
+       WARN_ON_ONCE(!list_empty(&tp->t_dfops->dop_intake) &&
                     !(tp->t_flags & XFS_TRANS_PERM_LOG_RES));
        if (!regrant && (tp->t_flags & XFS_TRANS_PERM_LOG_RES)) {
                error = xfs_defer_finish_noroll(&tp);