From 0c258ecde0be207092020586663543e2c87790fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 17 Jun 2017 01:21:21 +0000 Subject: [PATCH] [NTOS]: Whitespace fixes only. svn path=/trunk/; revision=75069 --- reactos/ntoskrnl/config/cmkcbncb.c | 34 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/reactos/ntoskrnl/config/cmkcbncb.c b/reactos/ntoskrnl/config/cmkcbncb.c index 199102264a0..d28ce71f718 100644 --- a/reactos/ntoskrnl/config/cmkcbncb.c +++ b/reactos/ntoskrnl/config/cmkcbncb.c @@ -26,10 +26,10 @@ INIT_FUNCTION CmpInitializeCache(VOID) { ULONG Length, i; - + /* Calculate length for the table */ Length = CmpHashTableSize * sizeof(CM_KEY_HASH_TABLE_ENTRY); - + /* Allocate it */ CmpCacheTable = CmpAllocate(Length, TRUE, TAG_CM); if (!CmpCacheTable) @@ -37,20 +37,20 @@ CmpInitializeCache(VOID) /* Take the system down */ KeBugCheckEx(CONFIG_INITIALIZATION_FAILED, 3, 1, 0, 0); } - + /* Zero out the table */ RtlZeroMemory(CmpCacheTable, Length); - + /* Initialize the locks */ for (i = 0;i < CmpHashTableSize; i++) { /* Setup the pushlock */ ExInitializePushLock(&CmpCacheTable[i].Lock); } - + /* Calculate length for the name cache */ Length = CmpHashTableSize * sizeof(CM_NAME_HASH_TABLE_ENTRY); - + /* Now allocate the name cache table */ CmpNameCacheTable = CmpAllocate(Length, TRUE, TAG_CM); if (!CmpNameCacheTable) @@ -58,7 +58,7 @@ CmpInitializeCache(VOID) /* Take the system down */ KeBugCheckEx(CONFIG_INITIALIZATION_FAILED, 3, 3, 0, 0); } - + /* Zero out the table */ RtlZeroMemory(CmpNameCacheTable, Length); @@ -68,7 +68,7 @@ CmpInitializeCache(VOID) /* Setup the pushlock */ ExInitializePushLock(&CmpNameCacheTable[i].Lock); } - + /* Setup the delayed close table */ CmpInitializeDelayedCloseTable(); } @@ -374,13 +374,13 @@ CmpReferenceKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb) /* Increase the reference count while we release the lock */ InterlockedIncrement((PLONG)&Kcb->RefCount); - + /* Go from shared to exclusive */ CmpConvertKcbSharedToExclusive(Kcb); /* Decrement the reference count; the lock is now held again */ InterlockedDecrement((PLONG)&Kcb->RefCount); - + /* Check if we still control the index */ if (Kcb->DelayedCloseIndex == 1) { @@ -1052,7 +1052,7 @@ EnlistKeyBodyWithKCB(IN PCM_KEY_BODY KeyBody, /* Sanity check */ ASSERT(KeyBody->KeyControlBlock != NULL); - + /* Initialize the list entry */ InitializeListHead(&KeyBody->KeyBodyList); @@ -1069,7 +1069,7 @@ EnlistKeyBodyWithKCB(IN PCM_KEY_BODY KeyBody, return; } } - + /* Array full, check if we need to unlock the KCB */ if (Flags & CMP_ENLIST_KCB_LOCKED_SHARED) { @@ -1129,12 +1129,12 @@ DelistKeyBodyFromKCB(IN PCM_KEY_BODY KeyBody, /* Sanity checks */ ASSERT(IsListEmpty(&KeyBody->KeyControlBlock->KeyBodyListHead) == FALSE); ASSERT(IsListEmpty(&KeyBody->KeyBodyList) == FALSE); - + /* Lock the KCB */ if (!LockHeld) CmpAcquireKcbLockExclusive(KeyBody->KeyControlBlock); ASSERT((CmpIsKcbLockedExclusive(KeyBody->KeyControlBlock) == TRUE) || (CmpTestRegistryLockExclusive() == TRUE)); - + /* Remove the entry */ RemoveEntryList(&KeyBody->KeyBodyList); @@ -1177,14 +1177,14 @@ CmpFlushNotifiesOnKeyBodyList(IN PCM_KEY_CONTROL_BLOCK Kcb, ASSERT(KeyBody->NotifyBlock == NULL); continue; } - + /* Lock isn't held, so we need to take a reference */ if (ObReferenceObjectSafe(KeyBody)) { /* Now we can flush */ CmpFlushNotify(KeyBody, LockHeld); ASSERT(KeyBody->NotifyBlock == NULL); - + /* Release the reference we took */ ObDereferenceObjectDeferDelete(KeyBody); continue; @@ -1195,7 +1195,7 @@ CmpFlushNotifiesOnKeyBodyList(IN PCM_KEY_CONTROL_BLOCK Kcb, NextEntry = NextEntry->Flink; } } - + /* List has been parsed, exit */ break; }