[NTOS:CC]

- Remove useless list entry from ROS_VACB

svn path=/trunk/; revision=63734
This commit is contained in:
Thomas Faber 2014-07-24 08:40:51 +00:00
parent 304292d17e
commit dca53f8c00
3 changed files with 0 additions and 7 deletions

View file

@ -168,7 +168,6 @@ CcSetFileSizes (
if ((current->ReferenceCount == 0) || ((current->ReferenceCount == 1) && current->Dirty))
{
RemoveEntryList(&current->CacheMapVacbListEntry);
RemoveEntryList(&current->VacbListEntry);
RemoveEntryList(&current->VacbLruListEntry);
if (current->Dirty)
{

View file

@ -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(&current->CacheMapVacbListEntry);
RemoveEntryList(&current->VacbListEntry);
RemoveEntryList(&current->VacbLruListEntry);
InsertHeadList(&FreeList, &current->CacheMapVacbListEntry);
@ -688,7 +686,6 @@ CcRosCreateVacb (
InsertHeadList(&SharedCacheMap->CacheMapVacbListHead, &current->CacheMapVacbListEntry);
}
KeReleaseSpinLock(&SharedCacheMap->CacheMapLock, oldIrql);
InsertTailList(&VacbListHead, &current->VacbListEntry);
InsertTailList(&VacbLruListHead, &current->VacbLruListEntry);
KeReleaseGuardedMutex(&ViewLock);
@ -1040,7 +1037,6 @@ CcRosDeleteFileCache (
{
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 @@ CcInitView (
{
DPRINT("CcInitView()\n");
InitializeListHead(&VacbListHead);
InitializeListHead(&DirtyVacbListHead);
InitializeListHead(&VacbLruListHead);
KeInitializeGuardedMutex(&ViewLock);

View file

@ -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;