Re: [PATCH v3] mm/ksm: prevent zero-page remapping during ksmd-triggered THP splits
From: Nico Pache
Date: Tue Nov 24 2026 - 18:28:49 EST
On 11/23/26 9:33 AM, David Hildenbrand (Arm) wrote:
[...]
I do wonder if we wan to make this an inline function to not require a function
call just to check this.
Thoughts?
we would have to also expose ksm_scan_thread; tbh im not sure what the impact of that is.
Probably helpful to throw in an unlikely() and to to reverse the checks
(checking the latter is cheaper than the former).
Sounds good! ill send a fixup once we determine if we want to inline the function.
In general LGTM.
Thank you!
-- Nico