@@ -469,6 +469,8 @@ xfs_defer_relog(
ASSERT((*tpp)->t_flags & XFS_TRANS_PERM_LOG_RES);
list_for_each_entry(dfp, dfops, dfp_list) {
+ struct xfs_log_item *lip;
+
/*
* If the log intent item for this deferred op is not a part of
* the current log checkpoint, relog the intent item to keep
@@ -497,9 +499,12 @@ xfs_defer_relog(
XFS_STATS_INC((*tpp)->t_mountp, defer_relog);
xfs_defer_create_done(*tpp, dfp);
- dfp->dfp_intent = xfs_trans_item_relog(dfp->dfp_intent,
- dfp->dfp_done, *tpp);
+ lip = xfs_trans_item_relog(dfp->dfp_intent, dfp->dfp_done,
+ *tpp);
+ if (lip)
+ set_bit(XFS_LI_DIRTY, &lip->li_flags);
dfp->dfp_done = NULL;
+ dfp->dfp_intent = lip;
}
if ((*tpp)->t_flags & XFS_TRANS_DIRTY)