Author: mbosma Date: Tue May 2 23:00:43 2006 New Revision: 21773
URL: http://svn.reactos.ru/svn/reactos?rev=21773&view=rev Log: Maintain the linked list CcInUseCacheViewListHead
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/cc/copy.c branches/cache_manager_rewrite/reactos/ntoskrnl/cc/pin.c
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/cc/copy.c URL: http://svn.reactos.ru/svn/reactos/branches/cache_manager_rewrite/reactos/nto... ============================================================================== --- branches/cache_manager_rewrite/reactos/ntoskrnl/cc/copy.c (original) +++ branches/cache_manager_rewrite/reactos/ntoskrnl/cc/copy.c Tue May 2 23:00:43 2006 @@ -181,6 +181,9 @@ Bcb->CacheView[Index]->SectionData.Section = Bcb->Section; Bcb->CacheView[Index]->SectionData.Segment = Bcb->Section->Segment;
+ RemoveEntryList (&Bcb->CacheView[Index]->ListEntry); + InsertHeadList (&CcInUseCacheViewListHead, &Bcb->CacheView[Index]->ListEntry); + Status = MmMapViewInSystemCache (Bcb->CacheView[Index]);
if (!NT_SUCCESS (Status)) @@ -329,6 +332,9 @@ Bcb->CacheView[Index]->SectionData.ViewOffset = Index * CACHE_VIEW_SIZE; Bcb->CacheView[Index]->SectionData.Section = Bcb->Section; Bcb->CacheView[Index]->SectionData.Segment = Bcb->Section->Segment; + + RemoveEntryList (&Bcb->CacheView[Index]->ListEntry); + InsertHeadList (&CcInUseCacheViewListHead, &Bcb->CacheView[Index]->ListEntry);
Status = MmMapViewInSystemCache (Bcb->CacheView[Index]);
@@ -574,6 +580,9 @@ Bcb->CacheView[Index]->SectionData.Section = Bcb->Section; Bcb->CacheView[Index]->SectionData.Segment = Bcb->Section->Segment;
+ RemoveEntryList (&Bcb->CacheView[Index]->ListEntry); + InsertHeadList (&CcInUseCacheViewListHead, &Bcb->CacheView[Index]->ListEntry); + Status = MmMapViewInSystemCache (Bcb->CacheView[Index]);
if (!NT_SUCCESS (Status))
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/cc/pin.c URL: http://svn.reactos.ru/svn/reactos/branches/cache_manager_rewrite/reactos/nto... ============================================================================== --- branches/cache_manager_rewrite/reactos/ntoskrnl/cc/pin.c (original) +++ branches/cache_manager_rewrite/reactos/ntoskrnl/cc/pin.c Tue May 2 23:00:43 2006 @@ -132,6 +132,9 @@ Bcb->CacheView[Index]->SectionData.ViewOffset = Index * CACHE_VIEW_SIZE; Bcb->CacheView[Index]->SectionData.Section = Bcb->Section; Bcb->CacheView[Index]->SectionData.Segment = Bcb->Section->Segment; + + RemoveEntryList (&Bcb->CacheView[Index]->ListEntry); + InsertHeadList (&CcInUseCacheViewListHead, &Bcb->CacheView[Index]->ListEntry);
Status = MmMapViewInSystemCache (Bcb->CacheView[Index]);