/* Called from the trans_commit code when we notice that the filesystem is in the middle of a forced shutdown.  */
STATIC void xfs_trans_uncommit(xfs_trans_t *, uint)
/* Called from the trans_commit code when we notice that the filesystem is in the middle of a forced shutdown.  */
STATIC void xfs_trans_uncommit(xfs_trans_t *, uint)
{
	xfs_log_item_desc_t	*lidp;
	for (lidp = xfs_trans_first_item(tp);
	     lidp != NULL;
	     lidp = xfs_trans_next_item(tp, lidp)) {
		if (lidp->lid_flags & XFS_LID_DIRTY)
			IOP_UNPIN_REMOVE(lidp->lid_item, tp);
	}
	xfs_trans_unreserve_and_mod_sb(tp);
	xfs_trans_unreserve_and_mod_dquots(tp);
	xfs_trans_free_items(tp, flags);
	xfs_trans_free_busy(tp);
	xfs_trans_free(tp);
}