[ros-diffs] [pschweitzer] 35254: LARGE_MCB is using a FAST_MUTEX

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Sun Aug 10 10:01:25 CEST 2008


Author: pschweitzer
Date: Sun Aug 10 03:01:25 2008
New Revision: 35254

URL: http://svn.reactos.org/svn/reactos?rev=35254&view=rev
Log:
LARGE_MCB is using a FAST_MUTEX

Modified:
    branches/pierre-fsd/include/ddk/ntifs.h
    branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c

Modified: branches/pierre-fsd/include/ddk/ntifs.h
URL: http://svn.reactos.org/svn/reactos/branches/pierre-fsd/include/ddk/ntifs.h?rev=35254&r1=35253&r2=35254&view=diff
==============================================================================
--- branches/pierre-fsd/include/ddk/ntifs.h [iso-8859-1] (original)
+++ branches/pierre-fsd/include/ddk/ntifs.h [iso-8859-1] Sun Aug 10 03:01:25 2008
@@ -1384,7 +1384,7 @@
 
 typedef struct _LARGE_MCB
 {
-    PKGUARDED_MUTEX GuardedMutex;
+    PFAST_MUTEX FastMutex;
     BASE_MCB BaseMcb;
 } LARGE_MCB, *PLARGE_MCB;
 

Modified: branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c
URL: http://svn.reactos.org/svn/reactos/branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c?rev=35254&r1=35253&r2=35254&view=diff
==============================================================================
--- branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c [iso-8859-1] (original)
+++ branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c [iso-8859-1] Sun Aug 10 03:01:25 2008
@@ -220,9 +220,9 @@
     ULONG NumberOfRuns;
 
     /* Read the number of runs while holding the MCB lock */
-    KeAcquireGuardedMutex(Mcb->GuardedMutex);
+    ExAcquireFastMutex(Mcb->FastMutex);
     NumberOfRuns = Mcb->BaseMcb.PairCount;
-    KeReleaseGuardedMutex(Mcb->GuardedMutex);
+    ExReleaseFastMutex(Mcb->FastMutex);
 
     /* Return the count */
     return NumberOfRuns;



More information about the Ros-diffs mailing list