[NTOS:MM] Use FORCEINLINE instead of simple inline

inline implies an implementation must exist in another compilation unit
This commit is contained in:
Jérôme Gardou 2023-07-22 23:48:58 +02:00 committed by Jérôme Gardou
parent ea331f074c
commit 57e018acf6

View file

@ -868,7 +868,7 @@ MmDeleteKernelStack(PVOID Stack,
/* balance.c / pagefile.c******************************************************/
inline VOID UpdateTotalCommittedPages(LONG Delta)
FORCEINLINE VOID UpdateTotalCommittedPages(LONG Delta)
{
/*
* Add up all the used "Committed" memory + pagefile.
@ -880,7 +880,7 @@ inline VOID UpdateTotalCommittedPages(LONG Delta)
MiMemoryConsumers[MC_USER].PagesUsed +
MiUsedSwapPages;
*/
/* Update Commitment */
SIZE_T TotalCommittedPages = InterlockedExchangeAddSizeT(&MmTotalCommittedPages, Delta) + Delta;