https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8df48f98760e869ec8063…
commit 8df48f98760e869ec80638c6a441e81da156fa24
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Tue Mar 30 18:13:59 2021 +0200
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Tue May 4 12:02:41 2021 +0200
[NTOS:MM] Introduce MI_IS_PROCESS_WORKING_SET helper function
---
ntoskrnl/mm/ARM3/miarm.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/ntoskrnl/mm/ARM3/miarm.h b/ntoskrnl/mm/ARM3/miarm.h
index 84357d1e7ea..053ae8047dd 100644
--- a/ntoskrnl/mm/ARM3/miarm.h
+++ b/ntoskrnl/mm/ARM3/miarm.h
@@ -664,6 +664,13 @@ extern LIST_ENTRY MmWorkingSetExpansionHead;
extern KSPIN_LOCK MmExpansionLock;
extern PETHREAD MiExpansionLockOwner;
+FORCEINLINE
+BOOLEAN
+MI_IS_PROCESS_WORKING_SET(PMMSUPPORT WorkingSet)
+{
+ return (WorkingSet != &MmSystemCacheWs) &&
!WorkingSet->Flags.SessionSpace;
+}
+
FORCEINLINE
BOOLEAN
MiIsMemoryTypeFree(TYPE_OF_MEMORY MemoryType)