Allocate the section segments from non paged pool because the storage for fast mutex...
authorHartmut Birr <osexpert@googlemail.com>
Sun, 5 Jun 2005 21:12:30 +0000 (21:12 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sun, 5 Jun 2005 21:12:30 +0000 (21:12 +0000)
svn path=/trunk/; revision=15815

reactos/ntoskrnl/mm/section.c

index e408d66..33d446a 100644 (file)
@@ -2183,7 +2183,7 @@ MmCreatePageFileSection(PSECTION_OBJECT *SectionObject,
    KeInitializeSpinLock(&Section->ViewListLock);
    Section->FileObject = NULL;
    Section->MaximumSize = MaximumSize;
-   Segment = ExAllocatePoolWithTag(PagedPool, sizeof(MM_SECTION_SEGMENT),
+   Segment = ExAllocatePoolWithTag(NonPagedPool, sizeof(MM_SECTION_SEGMENT),
                                    TAG_MM_SECTION_SEGMENT);
    if (Segment == NULL)
    {
@@ -2387,7 +2387,7 @@ MmCreateDataFileSection(PSECTION_OBJECT *SectionObject,
     */
    if (FileObject->SectionObjectPointer->DataSectionObject == NULL)
    {
-      Segment = ExAllocatePoolWithTag(PagedPool, sizeof(MM_SECTION_SEGMENT),
+      Segment = ExAllocatePoolWithTag(NonPagedPool, sizeof(MM_SECTION_SEGMENT),
                                       TAG_MM_SECTION_SEGMENT);
       if (Segment == NULL)
       {
@@ -2499,7 +2499,7 @@ ExeFmtpAllocateSegments(IN ULONG NrSegments)
  /* TODO: check for integer overflow */
  SizeOfSegments = sizeof(MM_SECTION_SEGMENT) * NrSegments;
 
- Segments = ExAllocatePoolWithTag(PagedPool,
+ Segments = ExAllocatePoolWithTag(NonPagedPool,
                                   SizeOfSegments,
                                   TAG_MM_SECTION_SEGMENT);