Author: pschweitzer
Date: Thu Jul 3 02:30:50 2008
New Revision: 34277
URL:
http://svn.reactos.org/svn/reactos?rev=34277&view=rev
Log:
When dealing with FCBs list, it must be done synchronized. Because it still freezes,
it's commented out. Lists won't be used yet.
Modified:
branches/pierre-fsd/drivers/filesystems/ntfs/fcb.c
Modified: branches/pierre-fsd/drivers/filesystems/ntfs/fcb.c
URL:
http://svn.reactos.org/svn/reactos/branches/pierre-fsd/drivers/filesystems/…
==============================================================================
--- branches/pierre-fsd/drivers/filesystems/ntfs/fcb.c [iso-8859-1] (original)
+++ branches/pierre-fsd/drivers/filesystems/ntfs/fcb.c [iso-8859-1] Thu Jul 3 02:30:50
2008
@@ -97,10 +97,11 @@
}
ExInitializeResourceLite(&Fcb->MainResource);
-
Fcb->RFCB.Resource = &(Fcb->MainResource);
-
- InsertTailList(&(Vcb->FcbListHead), &(Fcb->FcbListEntry));
+
+#if 0
+ ExInterlockedInsertTailList(&(Vcb->FcbListHead), &(Fcb->FcbListEntry),
&(Vcb->FcbListLock));
+#endif
return(Fcb);
}
@@ -109,12 +110,20 @@
VOID
NtfsDestroyFCB(PNTFS_FCB Fcb)
{
+#if 0
+ KIRQL oldIrql;
+#endif
+
ASSERT(Fcb);
ASSERT(Fcb->Identifier.Type == NTFS_TYPE_FCB);
ExDeleteResourceLite(&Fcb->MainResource);
+#if 0
+ KeAcquireSpinLock(&(Fcb->Vcb->FcbListLock), &oldIrql);
RemoveEntryList(&(Fcb->FcbListEntry));
+ KeReleaseSpinLock(&(Fcb->Vcb->FcbListLock), oldIrql);
+#endif
ExFreePool(Fcb);
}