On Mon, Dec 16, 2024 at 10:20:54PM +0530, Dev Jain wrote: > -static int hpage_collapse_scan_pmd(struct mm_struct *mm, > +static int hpage_collapse_scan_ptes(struct mm_struct *mm, i don't think this is necessary at all. you're scanning a pmd. you might not be scanning in order to collapse to a pmd, but pmd is the level you're scanning at.