diff --git a/reactos/ntoskrnl/cc/fs.c b/reactos/ntoskrnl/cc/fs.c index 2b95fb19376..27f6455904c 100644 --- a/reactos/ntoskrnl/cc/fs.c +++ b/reactos/ntoskrnl/cc/fs.c @@ -168,7 +168,6 @@ CcSetFileSizes ( if ((current->ReferenceCount == 0) || ((current->ReferenceCount == 1) && current->Dirty)) { RemoveEntryList(¤t->CacheMapVacbListEntry); - RemoveEntryList(¤t->VacbListEntry); RemoveEntryList(¤t->VacbLruListEntry); if (current->Dirty) { diff --git a/reactos/ntoskrnl/cc/view.c b/reactos/ntoskrnl/cc/view.c index 0584917098c..10bf34cb248 100644 --- a/reactos/ntoskrnl/cc/view.c +++ b/reactos/ntoskrnl/cc/view.c @@ -42,7 +42,6 @@ /* GLOBALS *******************************************************************/ static LIST_ENTRY DirtyVacbListHead; -static LIST_ENTRY VacbListHead; static LIST_ENTRY VacbLruListHead; ULONG DirtyPageCount = 0; @@ -331,7 +330,6 @@ retry: ASSERT(!current->MappedCount); RemoveEntryList(¤t->CacheMapVacbListEntry); - RemoveEntryList(¤t->VacbListEntry); RemoveEntryList(¤t->VacbLruListEntry); InsertHeadList(&FreeList, ¤t->CacheMapVacbListEntry); @@ -688,7 +686,6 @@ CcRosCreateVacb ( InsertHeadList(&SharedCacheMap->CacheMapVacbListHead, ¤t->CacheMapVacbListEntry); } KeReleaseSpinLock(&SharedCacheMap->CacheMapLock, oldIrql); - InsertTailList(&VacbListHead, ¤t->VacbListEntry); InsertTailList(&VacbLruListHead, ¤t->VacbLruListEntry); KeReleaseGuardedMutex(&ViewLock); @@ -1040,7 +1037,6 @@ CcRosDeleteFileCache ( { current_entry = RemoveTailList(&SharedCacheMap->CacheMapVacbListHead); current = CONTAINING_RECORD(current_entry, ROS_VACB, CacheMapVacbListEntry); - RemoveEntryList(¤t->VacbListEntry); RemoveEntryList(¤t->VacbLruListEntry); if (current->Dirty) { @@ -1267,7 +1263,6 @@ CcInitView ( { DPRINT("CcInitView()\n"); - InitializeListHead(&VacbListHead); InitializeListHead(&DirtyVacbListHead); InitializeListHead(&VacbLruListHead); KeInitializeGuardedMutex(&ViewLock); diff --git a/reactos/ntoskrnl/include/internal/cc.h b/reactos/ntoskrnl/include/internal/cc.h index 57649deec89..3e559f8888b 100644 --- a/reactos/ntoskrnl/include/internal/cc.h +++ b/reactos/ntoskrnl/include/internal/cc.h @@ -135,7 +135,6 @@ typedef struct _ROS_VACB /* 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;