On 2025/4/29 02:12, Nico Pache wrote:
khugepaged may try to collapse a mTHP to a smaller mTHP, resulting in some pages being unmapped. Skip these cases until we have a way to check if its ok to collapse to a smaller mTHP size (like in the case of a partially mapped folio). This patch is inspired by Dev Jain's work on khugepaged mTHP support [1]. [1] https://lore.kernel.org/lkml/20241216165105.56185-11-dev.jain@xxxxxxx/ Co-developed-by: Dev Jain <dev.jain@xxxxxxx> Signed-off-by: Dev Jain <dev.jain@xxxxxxx> Signed-off-by: Nico Pache <npache@xxxxxxxxxx>
LGTM. Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>