- Remove useless list entry from ROS_VACB
svn path=/trunk/; revision=63734
if ((current->ReferenceCount == 0) || ((current->ReferenceCount == 1) && current->Dirty))
{
RemoveEntryList(¤t->CacheMapVacbListEntry);
if ((current->ReferenceCount == 0) || ((current->ReferenceCount == 1) && current->Dirty))
{
RemoveEntryList(¤t->CacheMapVacbListEntry);
- RemoveEntryList(¤t->VacbListEntry);
RemoveEntryList(¤t->VacbLruListEntry);
if (current->Dirty)
{
RemoveEntryList(¤t->VacbLruListEntry);
if (current->Dirty)
{
/* GLOBALS *******************************************************************/
static LIST_ENTRY DirtyVacbListHead;
/* GLOBALS *******************************************************************/
static LIST_ENTRY DirtyVacbListHead;
-static LIST_ENTRY VacbListHead;
static LIST_ENTRY VacbLruListHead;
ULONG DirtyPageCount = 0;
static LIST_ENTRY VacbLruListHead;
ULONG DirtyPageCount = 0;
ASSERT(!current->MappedCount);
RemoveEntryList(¤t->CacheMapVacbListEntry);
ASSERT(!current->MappedCount);
RemoveEntryList(¤t->CacheMapVacbListEntry);
- RemoveEntryList(¤t->VacbListEntry);
RemoveEntryList(¤t->VacbLruListEntry);
InsertHeadList(&FreeList, ¤t->CacheMapVacbListEntry);
RemoveEntryList(¤t->VacbLruListEntry);
InsertHeadList(&FreeList, ¤t->CacheMapVacbListEntry);
InsertHeadList(&SharedCacheMap->CacheMapVacbListHead, ¤t->CacheMapVacbListEntry);
}
KeReleaseSpinLock(&SharedCacheMap->CacheMapLock, oldIrql);
InsertHeadList(&SharedCacheMap->CacheMapVacbListHead, ¤t->CacheMapVacbListEntry);
}
KeReleaseSpinLock(&SharedCacheMap->CacheMapLock, oldIrql);
- InsertTailList(&VacbListHead, ¤t->VacbListEntry);
InsertTailList(&VacbLruListHead, ¤t->VacbLruListEntry);
KeReleaseGuardedMutex(&ViewLock);
InsertTailList(&VacbLruListHead, ¤t->VacbLruListEntry);
KeReleaseGuardedMutex(&ViewLock);
{
current_entry = RemoveTailList(&SharedCacheMap->CacheMapVacbListHead);
current = CONTAINING_RECORD(current_entry, ROS_VACB, CacheMapVacbListEntry);
{
current_entry = RemoveTailList(&SharedCacheMap->CacheMapVacbListHead);
current = CONTAINING_RECORD(current_entry, ROS_VACB, CacheMapVacbListEntry);
- RemoveEntryList(¤t->VacbListEntry);
RemoveEntryList(¤t->VacbLruListEntry);
if (current->Dirty)
{
RemoveEntryList(¤t->VacbLruListEntry);
if (current->Dirty)
{
{
DPRINT("CcInitView()\n");
{
DPRINT("CcInitView()\n");
- InitializeListHead(&VacbListHead);
InitializeListHead(&DirtyVacbListHead);
InitializeListHead(&VacbLruListHead);
KeInitializeGuardedMutex(&ViewLock);
InitializeListHead(&DirtyVacbListHead);
InitializeListHead(&VacbLruListHead);
KeInitializeGuardedMutex(&ViewLock);
/* Entry in the list of VACBs which are dirty. */
LIST_ENTRY DirtyVacbListEntry;
/* Entry in the list of VACBs. */
/* 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;
LIST_ENTRY VacbLruListEntry;
/* Offset in the file which this view maps. */
LARGE_INTEGER FileOffset;