Skip to content

Commit

Permalink
[NTOS:CC] Remove the dirty VACB list
Browse files Browse the repository at this point in the history
  • Loading branch information
TAN-Gaming committed Nov 11, 2024
1 parent c727497 commit 9a5cd4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions ntoskrnl/cc/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

/* GLOBALS *******************************************************************/

LIST_ENTRY DirtyVacbListHead;
static LIST_ENTRY VacbLruListHead;

NPAGED_LOOKASIDE_LIST iBcbLookasideList;
Expand Down Expand Up @@ -744,7 +743,6 @@ CcRosCreateVacb (
current->MappedCount = 0;
current->ReferenceCount = 0;
InitializeListHead(&current->CacheMapVacbListEntry);
InitializeListHead(&current->DirtyVacbListEntry);
InitializeListHead(&current->VacbLruListEntry);

CcRosVacbIncRefCount(current);
Expand Down Expand Up @@ -997,7 +995,6 @@ CcRosInternalFreeVacb (

ASSERT(Vacb->ReferenceCount == 0);
ASSERT(IsListEmpty(&Vacb->CacheMapVacbListEntry));
ASSERT(IsListEmpty(&Vacb->DirtyVacbListEntry));
ASSERT(IsListEmpty(&Vacb->VacbLruListEntry));

/* Delete the mapping */
Expand Down Expand Up @@ -1475,7 +1472,6 @@ CcInitView (
{
DPRINT("CcInitView()\n");

InitializeListHead(&DirtyVacbListHead);
InitializeListHead(&VacbLruListHead);
InitializeListHead(&CcDeferredWrites);
InitializeListHead(&CcCleanSharedCacheMapList);
Expand Down
6 changes: 0 additions & 6 deletions ntoskrnl/include/internal/cc.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
// Global Cc Data
//
extern ULONG CcRosTraceLevel;
extern LIST_ENTRY DirtyVacbListHead;
extern LIST_ENTRY CcDirtySharedCacheMapList;
extern ULONG CcDirtyPageThreshold;
extern ULONG CcTotalDirtyPages;
Expand Down Expand Up @@ -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. */
Expand All @@ -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
Expand Down

0 comments on commit 9a5cd4f

Please sign in to comment.