Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 72 of file close.c.
Referenced by VfatDispatchRequest().
{ NTSTATUS Status; DPRINT ("VfatClose(DeviceObject %p, Irp %p)\n", IrpContext->DeviceObject, IrpContext->Irp); if (IrpContext->DeviceObject == VfatGlobalData->DeviceObject) { DPRINT("Closing file system\n"); Status = STATUS_SUCCESS; goto ByeBye; } #if 0 /* There occurs a dead look at the call to CcRosDeleteFileCache/ObDereferenceObject/VfatClose in CmLazyCloseThreadMain if VfatClose is execute asynchronous in a worker thread. */ if (!ExAcquireResourceExclusiveLite (&IrpContext->DeviceExt->DirResource, IrpContext->Flags & IRPCONTEXT_CANWAIT)) #else if (!ExAcquireResourceExclusiveLite (&IrpContext->DeviceExt->DirResource, TRUE)) #endif { return VfatQueueRequest (IrpContext); } Status = VfatCloseFile (IrpContext->DeviceExt, IrpContext->FileObject); ExReleaseResourceLite (&IrpContext->DeviceExt->DirResource); ByeBye: IrpContext->Irp->IoStatus.Status = Status; IrpContext->Irp->IoStatus.Information = 0; IoCompleteRequest (IrpContext->Irp, IO_NO_INCREMENT); VfatFreeIrpContext(IrpContext); return (Status); }