On Sun, 19 Apr 2026 12:57:43 -0600 Nico Pache <[email protected]> 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 check is also not done during the scan phase > as the current collapse order is unknown at that time. > > This patch is inspired by Dev Jain's work on khugepaged mTHP support [1]. > > [1] https://lore.kernel.org/lkml/[email protected]/ > > Reviewed-by: Lorenzo Stoakes <[email protected]> > Reviewed-by: Baolin Wang <[email protected]> > Co-developed-by: Dev Jain <[email protected]> > Signed-off-by: Dev Jain <[email protected]> > Signed-off-by: Nico Pache <[email protected]> > --- > mm/khugepaged.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > Acked-by: Usama Arif <[email protected]>
