Author: tfaber
Date: Thu Jul 24 08:40:51 2014
New Revision: 63734

URL: http://svn.reactos.org/svn/reactos?rev=63734&view=rev
Log:
[NTOS:CC]
- Remove useless list entry from ROS_VACB

Modified:
    trunk/reactos/ntoskrnl/cc/fs.c
    trunk/reactos/ntoskrnl/cc/view.c
    trunk/reactos/ntoskrnl/include/internal/cc.h

Modified: trunk/reactos/ntoskrnl/cc/fs.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/fs.c?rev=63734&r1=63733&r2=63734&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/cc/fs.c      [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/fs.c      [iso-8859-1] Thu Jul 24 08:40:51 2014
@@ -168,7 +168,6 @@
                 if ((current->ReferenceCount == 0) || 
((current->ReferenceCount == 1) && current->Dirty))
                 {
                     RemoveEntryList(&current->CacheMapVacbListEntry);
-                    RemoveEntryList(&current->VacbListEntry);
                     RemoveEntryList(&current->VacbLruListEntry);
                     if (current->Dirty)
                     {

Modified: trunk/reactos/ntoskrnl/cc/view.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/view.c?rev=63734&r1=63733&r2=63734&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/cc/view.c    [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/view.c    [iso-8859-1] Thu Jul 24 08:40:51 2014
@@ -42,7 +42,6 @@
 /* GLOBALS *******************************************************************/
 
 static LIST_ENTRY DirtyVacbListHead;
-static LIST_ENTRY VacbListHead;
 static LIST_ENTRY VacbLruListHead;
 ULONG DirtyPageCount = 0;
 
@@ -331,7 +330,6 @@
             ASSERT(!current->MappedCount);
 
             RemoveEntryList(&current->CacheMapVacbListEntry);
-            RemoveEntryList(&current->VacbListEntry);
             RemoveEntryList(&current->VacbLruListEntry);
             InsertHeadList(&FreeList, &current->CacheMapVacbListEntry);
 
@@ -688,7 +686,6 @@
         InsertHeadList(&SharedCacheMap->CacheMapVacbListHead, 
&current->CacheMapVacbListEntry);
     }
     KeReleaseSpinLock(&SharedCacheMap->CacheMapLock, oldIrql);
-    InsertTailList(&VacbListHead, &current->VacbListEntry);
     InsertTailList(&VacbLruListHead, &current->VacbLruListEntry);
     KeReleaseGuardedMutex(&ViewLock);
 
@@ -1040,7 +1037,6 @@
         {
             current_entry = 
RemoveTailList(&SharedCacheMap->CacheMapVacbListHead);
             current = CONTAINING_RECORD(current_entry, ROS_VACB, 
CacheMapVacbListEntry);
-            RemoveEntryList(&current->VacbListEntry);
             RemoveEntryList(&current->VacbLruListEntry);
             if (current->Dirty)
             {
@@ -1267,7 +1263,6 @@
 {
     DPRINT("CcInitView()\n");
 
-    InitializeListHead(&VacbListHead);
     InitializeListHead(&DirtyVacbListHead);
     InitializeListHead(&VacbLruListHead);
     KeInitializeGuardedMutex(&ViewLock);

Modified: trunk/reactos/ntoskrnl/include/internal/cc.h
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/cc.h?rev=63734&r1=63733&r2=63734&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/cc.h        [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/cc.h        [iso-8859-1] Thu Jul 24 
08:40:51 2014
@@ -135,7 +135,6 @@
     /* Entry in the list of VACBs which are dirty. */
     LIST_ENTRY DirtyVacbListEntry;
     /* Entry in the list of VACBs. */
-    LIST_ENTRY VacbListEntry;
     LIST_ENTRY VacbLruListEntry;
     /* Offset in the file which this view maps. */
     LARGE_INTEGER FileOffset;


Reply via email to