mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:52:57 +00:00
[NTOSKRNL]
Apply indentation of 4 spaces, no code change. svn path=/trunk/; revision=64531
This commit is contained in:
parent
4b31efff8f
commit
c9252b32bd
9 changed files with 5340 additions and 5333 deletions
|
@ -79,9 +79,9 @@ MmInitializeBalancer(ULONG NrAvailablePages, ULONG NrSystemPages)
|
||||||
VOID
|
VOID
|
||||||
INIT_FUNCTION
|
INIT_FUNCTION
|
||||||
NTAPI
|
NTAPI
|
||||||
MmInitializeMemoryConsumer(ULONG Consumer,
|
MmInitializeMemoryConsumer(
|
||||||
NTSTATUS (*Trim)(ULONG Target, ULONG Priority,
|
ULONG Consumer,
|
||||||
PULONG NrFreed))
|
NTSTATUS (*Trim)(ULONG Target, ULONG Priority, PULONG NrFreed))
|
||||||
{
|
{
|
||||||
MiMemoryConsumers[Consumer].Trim = Trim;
|
MiMemoryConsumers[Consumer].Trim = Trim;
|
||||||
}
|
}
|
||||||
|
@ -424,7 +424,8 @@ MiBalancerThread(PVOID Unused)
|
||||||
/* Game over */
|
/* Game over */
|
||||||
KeBugCheck(NO_PAGES_AVAILABLE);
|
KeBugCheck(NO_PAGES_AVAILABLE);
|
||||||
}
|
}
|
||||||
} while (InitialTarget != 0);
|
}
|
||||||
|
while (InitialTarget != 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -163,11 +163,13 @@ static ULONG SectionCharacteristicsToProtect[16] =
|
||||||
|
|
||||||
extern ULONG MmMakeFileAccess [];
|
extern ULONG MmMakeFileAccess [];
|
||||||
ACCESS_MASK NTAPI MiArm3GetCorrectFileAccessMask(IN ACCESS_MASK SectionPageProtection);
|
ACCESS_MASK NTAPI MiArm3GetCorrectFileAccessMask(IN ACCESS_MASK SectionPageProtection);
|
||||||
static GENERIC_MAPPING MmpSectionMapping = {
|
static GENERIC_MAPPING MmpSectionMapping =
|
||||||
|
{
|
||||||
STANDARD_RIGHTS_READ | SECTION_MAP_READ | SECTION_QUERY,
|
STANDARD_RIGHTS_READ | SECTION_MAP_READ | SECTION_QUERY,
|
||||||
STANDARD_RIGHTS_WRITE | SECTION_MAP_WRITE,
|
STANDARD_RIGHTS_WRITE | SECTION_MAP_WRITE,
|
||||||
STANDARD_RIGHTS_EXECUTE | SECTION_MAP_EXECUTE,
|
STANDARD_RIGHTS_EXECUTE | SECTION_MAP_EXECUTE,
|
||||||
SECTION_ALL_ACCESS};
|
SECTION_ALL_ACCESS
|
||||||
|
};
|
||||||
|
|
||||||
static const INFORMATION_CLASS_INFO ExSectionInfoClass[] =
|
static const INFORMATION_CLASS_INFO ExSectionInfoClass[] =
|
||||||
{
|
{
|
||||||
|
@ -2453,12 +2455,14 @@ MmAlterViewAttributes(PMMSUPPORT AddressSpace,
|
||||||
ULONG Protect = NewProtect;
|
ULONG Protect = NewProtect;
|
||||||
|
|
||||||
/* Wait for a wait entry to disappear */
|
/* Wait for a wait entry to disappear */
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
MmGetPageFileMapping(Process, Address, &SwapEntry);
|
MmGetPageFileMapping(Process, Address, &SwapEntry);
|
||||||
if (SwapEntry != MM_WAIT_ENTRY)
|
if (SwapEntry != MM_WAIT_ENTRY)
|
||||||
break;
|
break;
|
||||||
MiWaitForPageEvent(Process, Address);
|
MiWaitForPageEvent(Process, Address);
|
||||||
} while (TRUE);
|
}
|
||||||
|
while (TRUE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we doing COW for this segment then check if the page is
|
* If we doing COW for this segment then check if the page is
|
||||||
|
@ -3943,7 +3947,8 @@ MmMapViewOfSegment(PMMSUPPORT AddressSpace,
|
||||||
Granularity = PAGE_SIZE;
|
Granularity = PAGE_SIZE;
|
||||||
|
|
||||||
#ifdef NEWCC
|
#ifdef NEWCC
|
||||||
if (Segment->Flags & MM_DATAFILE_SEGMENT) {
|
if (Segment->Flags & MM_DATAFILE_SEGMENT)
|
||||||
|
{
|
||||||
LARGE_INTEGER FileOffset;
|
LARGE_INTEGER FileOffset;
|
||||||
FileOffset.QuadPart = ViewOffset;
|
FileOffset.QuadPart = ViewOffset;
|
||||||
ObReferenceObject(Section);
|
ObReferenceObject(Section);
|
||||||
|
@ -4752,7 +4757,8 @@ MmFlushImageSection (IN PSECTION_OBJECT_POINTERS SectionObjectPointer,
|
||||||
Segment = (PMM_SECTION_SEGMENT)SectionObjectPointer->DataSectionObject;
|
Segment = (PMM_SECTION_SEGMENT)SectionObjectPointer->DataSectionObject;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (SectionObjectPointer->ImageSectionObject) {
|
if (SectionObjectPointer->ImageSectionObject)
|
||||||
|
{
|
||||||
DPRINT1("SectionObject has ImageSection\n");
|
DPRINT1("SectionObject has ImageSection\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue