diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c index 1167995e8d1ed..d23f5a9867cea 100644 --- a/ntoskrnl/cc/view.c +++ b/ntoskrnl/cc/view.c @@ -38,7 +38,6 @@ /* GLOBALS *******************************************************************/ -LIST_ENTRY DirtyVacbListHead; static LIST_ENTRY VacbLruListHead; NPAGED_LOOKASIDE_LIST iBcbLookasideList; @@ -744,7 +743,6 @@ CcRosCreateVacb ( current->MappedCount = 0; current->ReferenceCount = 0; InitializeListHead(¤t->CacheMapVacbListEntry); - InitializeListHead(¤t->DirtyVacbListEntry); InitializeListHead(¤t->VacbLruListEntry); CcRosVacbIncRefCount(current); @@ -997,7 +995,6 @@ CcRosInternalFreeVacb ( ASSERT(Vacb->ReferenceCount == 0); ASSERT(IsListEmpty(&Vacb->CacheMapVacbListEntry)); - ASSERT(IsListEmpty(&Vacb->DirtyVacbListEntry)); ASSERT(IsListEmpty(&Vacb->VacbLruListEntry)); /* Delete the mapping */ @@ -1475,7 +1472,6 @@ CcInitView ( { DPRINT("CcInitView()\n"); - InitializeListHead(&DirtyVacbListHead); InitializeListHead(&VacbLruListHead); InitializeListHead(&CcDeferredWrites); InitializeListHead(&CcCleanSharedCacheMapList); diff --git a/ntoskrnl/include/internal/cc.h b/ntoskrnl/include/internal/cc.h index 0449f48dc6198..b16d342574035 100644 --- a/ntoskrnl/include/internal/cc.h +++ b/ntoskrnl/include/internal/cc.h @@ -40,7 +40,6 @@ // Global Cc Data // extern ULONG CcRosTraceLevel; -extern LIST_ENTRY DirtyVacbListHead; extern LIST_ENTRY CcDirtySharedCacheMapList; extern ULONG CcDirtyPageThreshold; extern ULONG CcTotalDirtyPages; @@ -209,15 +208,11 @@ typedef struct _ROS_VACB { /* Base address of the region where the view's data is mapped. */ PVOID BaseAddress; - /* Are the contents of the view newer than those on disk. */ - BOOLEAN Dirty; /* Page out in progress */ BOOLEAN PageOut; ULONG MappedCount; /* Entry in the list of VACBs for this shared cache map. */ LIST_ENTRY CacheMapVacbListEntry; - /* Entry in the list of VACBs which are dirty. */ - LIST_ENTRY DirtyVacbListEntry; /* Entry in the list of VACBs. */ LIST_ENTRY VacbLruListEntry; /* Offset in the file which this view maps. */ @@ -226,7 +221,6 @@ typedef struct _ROS_VACB volatile ULONG ReferenceCount; /* Pointer to the shared cache map for the file which this view maps data for. */ PROS_SHARED_CACHE_MAP SharedCacheMap; - /* Pointer to the next VACB in a chain. */ } ROS_VACB, *PROS_VACB; typedef struct _INTERNAL_BCB