[NTOSKRNL:CC] added CcGetCachedDirtyPageCountForFile
Added CcGetCachedDirtyPageCountForFile
This commit is contained in:
parent
c3b506d686
commit
8e73c913ed
@ -221,7 +221,9 @@ Void NTAPI CcSetAdditionalCacheAttributes(
|
||||
KeReleaseQueuedSpinLock(LockQueueMasterLock, oldlock);
|
||||
|
||||
}
|
||||
VOID NTAPI CcSetAdditionalCacheAttributesEx(PFILE_OBJECT FileObject,
|
||||
VOID
|
||||
NTAPI
|
||||
CcSetAdditionalCacheAttributesEx(PFILE_OBJECT FileObject,
|
||||
ULONG Flags)
|
||||
{
|
||||
PSHARED_CACHE_MAP sharedCacheMap = FileObject->SectionObjectPointer->SharedCacheMap;
|
||||
@ -412,8 +414,9 @@ CcSetLoggedDataThreshold (
|
||||
|
||||
KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);
|
||||
}
|
||||
VECTORCALL
|
||||
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
CcIsThereDirtyLoggedPages (
|
||||
_In_ PDEVICE_OBJECT DeviceObject,
|
||||
_Out_opt_ PULONG NumberOfDirtyPages
|
||||
@ -458,6 +461,20 @@ CcIsThereDirtyLoggedPages (
|
||||
return DirtyPagesExist;
|
||||
}
|
||||
|
||||
|
||||
ULONG
|
||||
NTAPI
|
||||
CcGetCachedDirtyPageCountForFile(PSECTION_OBJECT_POINTERS SectionObjectPointer)
|
||||
{
|
||||
ULONG DIRTYPAGES = -1;;
|
||||
PSHARED_CACHE_MAP SharedCacheMap;
|
||||
|
||||
if ( SectionObjectPointer )
|
||||
{
|
||||
SharedCacheMap = SectionObjectPointer->SharedCacheMap;
|
||||
if ( SharedCacheMap )
|
||||
DIRTYPAGES = SharedCacheMap->DirtyPages;
|
||||
}
|
||||
return DIRTYPAGES;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user