mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Removed the call to VfatUpdateEntry.
Executed VfatClose always synchronous. svn path=/trunk/; revision=3982
This commit is contained in:
parent
189d9d92c3
commit
7a16a8cbe7
1 changed files with 7 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: close.c,v 1.15 2002/11/11 21:49:17 hbirr Exp $
|
/* $Id: close.c,v 1.16 2003/01/11 15:56:43 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -56,16 +56,10 @@ VfatCloseFile (PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT FileObject)
|
||||||
if (pFcb->Flags & FCB_DELETE_PENDING)
|
if (pFcb->Flags & FCB_DELETE_PENDING)
|
||||||
{
|
{
|
||||||
delEntry (DeviceExt, FileObject);
|
delEntry (DeviceExt, FileObject);
|
||||||
pFcb->Flags &= ~FCB_UPDATE_DIRENTRY;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Status = STATUS_DELETE_PENDING;
|
Status = STATUS_DELETE_PENDING;
|
||||||
}
|
}
|
||||||
if (pFcb->Flags & FCB_UPDATE_DIRENTRY)
|
|
||||||
{
|
|
||||||
VfatUpdateEntry (DeviceExt, FileObject);
|
|
||||||
pFcb->Flags &= ~FCB_UPDATE_DIRENTRY;
|
|
||||||
}
|
|
||||||
FileObject->FsContext2 = NULL;
|
FileObject->FsContext2 = NULL;
|
||||||
vfatReleaseFCB (DeviceExt, pFcb);
|
vfatReleaseFCB (DeviceExt, pFcb);
|
||||||
}
|
}
|
||||||
|
@ -92,8 +86,13 @@ NTSTATUS VfatClose (PVFAT_IRP_CONTEXT IrpContext)
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
goto ByeBye;
|
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))
|
if (!ExAcquireResourceExclusiveLite (&IrpContext->DeviceExt->DirResource, IrpContext->Flags & IRPCONTEXT_CANWAIT))
|
||||||
|
#else
|
||||||
|
if (!ExAcquireResourceExclusiveLite (&IrpContext->DeviceExt->DirResource, TRUE))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
return VfatQueueRequest (IrpContext);
|
return VfatQueueRequest (IrpContext);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue