diff --git a/drivers/filesystems/fastfat/cleanup.c b/drivers/filesystems/fastfat/cleanup.c index ad5f120d91..3478b6995d 100644 --- a/drivers/filesystems/fastfat/cleanup.c +++ b/drivers/filesystems/fastfat/cleanup.c @@ -131,7 +131,7 @@ VfatCleanupFile( IoRemoveShareAccess(FileObject, &pFcb->FCBShareAccess); } /* FIXME: causes FS corruption and breaks selfhosting/testbots and so on */ -#if 0 +// #if 0 /* If that's the last open handle we just closed, try to see whether * we can delay close operation */ @@ -141,15 +141,20 @@ VfatCleanupFile( /* This is only allowed if that's a directory with no open files * OR if it's a file with no section opened */ +#if 0 /* This section does both directories and files */ if ((vfatFCBIsDirectory(pFcb) && IsListEmpty(&pFcb->ParentListHead)) || (!vfatFCBIsDirectory(pFcb) && FileObject->SectionObjectPointer->DataSectionObject == NULL && FileObject->SectionObjectPointer->ImageSectionObject == NULL)) +#else /* This section only does files */ + if (!vfatFCBIsDirectory(pFcb) && FileObject->SectionObjectPointer->DataSectionObject == NULL && + FileObject->SectionObjectPointer->ImageSectionObject == NULL) +#endif { DPRINT("Delaying close of: %wZ\n", &pFcb->PathNameU); SetFlag(pFcb->Flags, FCB_DELAYED_CLOSE); } } -#endif +// #endif FileObject->Flags |= FO_CLEANUP_COMPLETE; #ifdef KDBG