mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 07:05:12 +00:00
[NTOS:CC]
- Remove useless list entry from ROS_VACB svn path=/trunk/; revision=63734
This commit is contained in:
parent
304292d17e
commit
dca53f8c00
|
@ -168,7 +168,6 @@ CcSetFileSizes (
|
||||||
if ((current->ReferenceCount == 0) || ((current->ReferenceCount == 1) && current->Dirty))
|
if ((current->ReferenceCount == 0) || ((current->ReferenceCount == 1) && current->Dirty))
|
||||||
{
|
{
|
||||||
RemoveEntryList(¤t->CacheMapVacbListEntry);
|
RemoveEntryList(¤t->CacheMapVacbListEntry);
|
||||||
RemoveEntryList(¤t->VacbListEntry);
|
|
||||||
RemoveEntryList(¤t->VacbLruListEntry);
|
RemoveEntryList(¤t->VacbLruListEntry);
|
||||||
if (current->Dirty)
|
if (current->Dirty)
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
static LIST_ENTRY DirtyVacbListHead;
|
static LIST_ENTRY DirtyVacbListHead;
|
||||||
static LIST_ENTRY VacbListHead;
|
|
||||||
static LIST_ENTRY VacbLruListHead;
|
static LIST_ENTRY VacbLruListHead;
|
||||||
ULONG DirtyPageCount = 0;
|
ULONG DirtyPageCount = 0;
|
||||||
|
|
||||||
|
@ -331,7 +330,6 @@ retry:
|
||||||
ASSERT(!current->MappedCount);
|
ASSERT(!current->MappedCount);
|
||||||
|
|
||||||
RemoveEntryList(¤t->CacheMapVacbListEntry);
|
RemoveEntryList(¤t->CacheMapVacbListEntry);
|
||||||
RemoveEntryList(¤t->VacbListEntry);
|
|
||||||
RemoveEntryList(¤t->VacbLruListEntry);
|
RemoveEntryList(¤t->VacbLruListEntry);
|
||||||
InsertHeadList(&FreeList, ¤t->CacheMapVacbListEntry);
|
InsertHeadList(&FreeList, ¤t->CacheMapVacbListEntry);
|
||||||
|
|
||||||
|
@ -688,7 +686,6 @@ CcRosCreateVacb (
|
||||||
InsertHeadList(&SharedCacheMap->CacheMapVacbListHead, ¤t->CacheMapVacbListEntry);
|
InsertHeadList(&SharedCacheMap->CacheMapVacbListHead, ¤t->CacheMapVacbListEntry);
|
||||||
}
|
}
|
||||||
KeReleaseSpinLock(&SharedCacheMap->CacheMapLock, oldIrql);
|
KeReleaseSpinLock(&SharedCacheMap->CacheMapLock, oldIrql);
|
||||||
InsertTailList(&VacbListHead, ¤t->VacbListEntry);
|
|
||||||
InsertTailList(&VacbLruListHead, ¤t->VacbLruListEntry);
|
InsertTailList(&VacbLruListHead, ¤t->VacbLruListEntry);
|
||||||
KeReleaseGuardedMutex(&ViewLock);
|
KeReleaseGuardedMutex(&ViewLock);
|
||||||
|
|
||||||
|
@ -1040,7 +1037,6 @@ CcRosDeleteFileCache (
|
||||||
{
|
{
|
||||||
current_entry = RemoveTailList(&SharedCacheMap->CacheMapVacbListHead);
|
current_entry = RemoveTailList(&SharedCacheMap->CacheMapVacbListHead);
|
||||||
current = CONTAINING_RECORD(current_entry, ROS_VACB, CacheMapVacbListEntry);
|
current = CONTAINING_RECORD(current_entry, ROS_VACB, CacheMapVacbListEntry);
|
||||||
RemoveEntryList(¤t->VacbListEntry);
|
|
||||||
RemoveEntryList(¤t->VacbLruListEntry);
|
RemoveEntryList(¤t->VacbLruListEntry);
|
||||||
if (current->Dirty)
|
if (current->Dirty)
|
||||||
{
|
{
|
||||||
|
@ -1267,7 +1263,6 @@ CcInitView (
|
||||||
{
|
{
|
||||||
DPRINT("CcInitView()\n");
|
DPRINT("CcInitView()\n");
|
||||||
|
|
||||||
InitializeListHead(&VacbListHead);
|
|
||||||
InitializeListHead(&DirtyVacbListHead);
|
InitializeListHead(&DirtyVacbListHead);
|
||||||
InitializeListHead(&VacbLruListHead);
|
InitializeListHead(&VacbLruListHead);
|
||||||
KeInitializeGuardedMutex(&ViewLock);
|
KeInitializeGuardedMutex(&ViewLock);
|
||||||
|
|
|
@ -135,7 +135,6 @@ typedef struct _ROS_VACB
|
||||||
/* Entry in the list of VACBs which are dirty. */
|
/* Entry in the list of VACBs which are dirty. */
|
||||||
LIST_ENTRY DirtyVacbListEntry;
|
LIST_ENTRY DirtyVacbListEntry;
|
||||||
/* Entry in the list of VACBs. */
|
/* Entry in the list of VACBs. */
|
||||||
LIST_ENTRY VacbListEntry;
|
|
||||||
LIST_ENTRY VacbLruListEntry;
|
LIST_ENTRY VacbLruListEntry;
|
||||||
/* Offset in the file which this view maps. */
|
/* Offset in the file which this view maps. */
|
||||||
LARGE_INTEGER FileOffset;
|
LARGE_INTEGER FileOffset;
|
||||||
|
|
Loading…
Reference in a new issue