On 5/22/26 17:00, Nico Pache wrote:
khugepaged may try to collapse a mTHP to a smaller mTHP, resulting in
some pages being unmapped.
The "some pages being unmapped" part is unclear.
I assume what you mean is "possibly resulting in a partially mapped source
folio, which is undesired."
But there is also the problem that we could try collapsing a folio to a
same-sized folio, which doesn't make sense (assuming the folio is fully mapped).
Clarify all that, please.
Acked-by: David Hildenbrand (arm) <david@kernel.org>
--
Cheers,
David