BOOLEAN
MiCheckSystemTrimEndCriteria(
  IN  PMMWS_TRIM_CRITERIA Criteria,
  IN  KIRQL OldIrql
  );

Routine Description:

     Check the ending criteria.  If we're not done, delay for a little
     bit to let the modified write catch up.

Arguments:

    Criteria - Supplies the trim criteria information.

    OldIrql - Supplies the old IRQL to lower to if the expansion lock needs
              to be released.

Return Value:

    TRUE if trimming can be stopped, FALSE otherwise.

Environment:

    Kernel mode.  Expansion lock held.  APC level or below.