[NTOSKRNL]

Apply indentation of 4 spaces, no code change.

svn path=/trunk/; revision=64531
This commit is contained in:
Timo Kreuzer 2014-10-05 06:33:34 +00:00
parent 4b31efff8f
commit c9252b32bd
9 changed files with 5340 additions and 5333 deletions

View file

@ -79,9 +79,9 @@ MmInitializeBalancer(ULONG NrAvailablePages, ULONG NrSystemPages)
VOID
INIT_FUNCTION
NTAPI
MmInitializeMemoryConsumer(ULONG Consumer,
NTSTATUS (*Trim)(ULONG Target, ULONG Priority,
PULONG NrFreed))
MmInitializeMemoryConsumer(
ULONG Consumer,
NTSTATUS (*Trim)(ULONG Target, ULONG Priority, PULONG NrFreed))
{
MiMemoryConsumers[Consumer].Trim = Trim;
}
@ -424,7 +424,8 @@ MiBalancerThread(PVOID Unused)
/* Game over */
KeBugCheck(NO_PAGES_AVAILABLE);
}
} while (InitialTarget != 0);
}
while (InitialTarget != 0);
}
else
{

View file

@ -163,11 +163,13 @@ static ULONG SectionCharacteristicsToProtect[16] =
extern ULONG MmMakeFileAccess [];
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_WRITE | SECTION_MAP_WRITE,
STANDARD_RIGHTS_EXECUTE | SECTION_MAP_EXECUTE,
SECTION_ALL_ACCESS};
SECTION_ALL_ACCESS
};
static const INFORMATION_CLASS_INFO ExSectionInfoClass[] =
{
@ -2453,12 +2455,14 @@ MmAlterViewAttributes(PMMSUPPORT AddressSpace,
ULONG Protect = NewProtect;
/* Wait for a wait entry to disappear */
do {
do
{
MmGetPageFileMapping(Process, Address, &SwapEntry);
if (SwapEntry != MM_WAIT_ENTRY)
break;
MiWaitForPageEvent(Process, Address);
} while (TRUE);
}
while (TRUE);
/*
* If we doing COW for this segment then check if the page is
@ -3943,7 +3947,8 @@ MmMapViewOfSegment(PMMSUPPORT AddressSpace,
Granularity = PAGE_SIZE;
#ifdef NEWCC
if (Segment->Flags & MM_DATAFILE_SEGMENT) {
if (Segment->Flags & MM_DATAFILE_SEGMENT)
{
LARGE_INTEGER FileOffset;
FileOffset.QuadPart = ViewOffset;
ObReferenceObject(Section);
@ -4752,7 +4757,8 @@ MmFlushImageSection (IN PSECTION_OBJECT_POINTERS SectionObjectPointer,
Segment = (PMM_SECTION_SEGMENT)SectionObjectPointer->DataSectionObject;
#endif
if (SectionObjectPointer->ImageSectionObject) {
if (SectionObjectPointer->ImageSectionObject)
{
DPRINT1("SectionObject has ImageSection\n");
return FALSE;
}