[ros-diffs] [arty] 35702: We don't need MmIsCOWAddress any longer.

arty at svn.reactos.org arty at svn.reactos.org
Wed Aug 27 17:22:11 CEST 2008


Author: arty
Date: Wed Aug 27 10:22:10 2008
New Revision: 35702

URL: http://svn.reactos.org/svn/reactos?rev=35702&view=rev
Log:
We don't need MmIsCOWAddress any longer.

Modified:
    branches/arty-newcc/ntoskrnl/mm/section.c

Modified: branches/arty-newcc/ntoskrnl/mm/section.c
URL: http://svn.reactos.org/svn/reactos/branches/arty-newcc/ntoskrnl/mm/section.c?rev=35702&r1=35701&r2=35702&view=diff
==============================================================================
--- branches/arty-newcc/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ branches/arty-newcc/ntoskrnl/mm/section.c [iso-8859-1] Wed Aug 27 10:22:10 2008
@@ -374,21 +374,6 @@
      */
     RtlCreateUnicodeString(ModuleName, L"C:\\ReactOS\\system32\\ntdll.dll");
     return STATUS_SUCCESS;
-}
-
-BOOLEAN
-NTAPI
-MmIsCOWAddress(IN PEPROCESS Process, IN PVOID Address)
-{
-    BOOLEAN IsCow = TRUE; /* Don't write unless we're sure */
-    PMEMORY_AREA MemoryArea;
-
-    MmLockAddressSpace(&Process->VadRoot);
-    MemoryArea = MmLocateMemoryAreaByAddress(&Process->VadRoot, Address);
-    ASSERT(MemoryArea);
-    IsCow = MemoryArea->Data.SectionData.WriteCopyView;
-    MmUnlockAddressSpace(&Process->VadRoot);
-    return IsCow;
 }
 
 /* Note: Mmsp prefix denotes "Memory Manager Section Private". */



More information about the Ros-diffs mailing list