On Mon, Dec 16, 2024 at 10:20:57PM +0530, Dev Jain wrote: > - unsigned long address, end = haddr + (HPAGE_PMD_NR * PAGE_SIZE); > + unsigned long address, end = addr + ((1UL << order) * PAGE_SIZE); addr + (PAGE_SIZE << order);
On Mon, Dec 16, 2024 at 10:20:57PM +0530, Dev Jain wrote: > - unsigned long address, end = haddr + (HPAGE_PMD_NR * PAGE_SIZE); > + unsigned long address, end = addr + ((1UL << order) * PAGE_SIZE); addr + (PAGE_SIZE << order);