/* Check the references of all open files on the volume. Any open file (that is checked) that is no longer referenced, is freed - and its parent open file is then referenced checked. */
STATIC VOID FatCheckVolumeRef(IN FAT_VOLUME *Volume)
/* Check the references of all open files on the volume. Any open file (that is checked) that is no longer referenced, is freed - and its parent open file is then referenced checked. */
STATIC VOID FatCheckVolumeRef(IN FAT_VOLUME *Volume)
{
  FAT_OFILE  *OFile;
  FAT_OFILE  *Parent;
  while (!IsListEmpty (&Volume->CheckRef)) {
    Parent = OFILE_FROM_CHECKLINK (Volume->CheckRef.ForwardLink);
    while (Parent != NULL) {
      OFile  = Parent;
      Parent = OFile->Parent;
      if (!FatCheckOFileRef (OFile)) {
        break;
      }
    }
  }
}