Author: vmikayelyan
Date: Thu Aug 25 14:08:19 2016
New Revision: 72459
URL:
http://svn.reactos.org/svn/reactos?rev=72459&view=rev
Log:
fastfat: Remove code dublication, which has added r6279
Modified:
branches/GSoC_2016/USB/drivers/filesystems/fastfat/flush.c
Modified: branches/GSoC_2016/USB/drivers/filesystems/fastfat/flush.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2016/USB/drivers/filesyste…
==============================================================================
--- branches/GSoC_2016/USB/drivers/filesystems/fastfat/flush.c [iso-8859-1] (original)
+++ branches/GSoC_2016/USB/drivers/filesystems/fastfat/flush.c [iso-8859-1] Thu Aug 25
14:08:19 2016
@@ -64,25 +64,6 @@
Fcb = CONTAINING_RECORD(ListEntry, VFATFCB, FcbListEntry);
ListEntry = ListEntry->Flink;
if (!vfatFCBIsDirectory(Fcb))
- {
- ExAcquireResourceExclusiveLite(&Fcb->MainResource, TRUE);
- Status = VfatFlushFile(DeviceExt, Fcb);
- ExReleaseResourceLite (&Fcb->MainResource);
- if (!NT_SUCCESS(Status))
- {
- DPRINT1("VfatFlushFile failed, status = %x\n", Status);
- ReturnStatus = Status;
- }
- }
- /* FIXME: Stop flushing if this is a removable media and the media was removed
*/
- }
-
- ListEntry = DeviceExt->FcbListHead.Flink;
- while (ListEntry != &DeviceExt->FcbListHead)
- {
- Fcb = CONTAINING_RECORD(ListEntry, VFATFCB, FcbListEntry);
- ListEntry = ListEntry->Flink;
- if (vfatFCBIsDirectory(Fcb))
{
ExAcquireResourceExclusiveLite(&Fcb->MainResource, TRUE);
Status = VfatFlushFile(DeviceExt, Fcb);