Re: [PATCH v2 1/2] kho: use unsigned long for nr_pages

From: Andrew Morton

Date: Fri Jan 16 2026 - 17:26:36 EST


On Fri, 16 Jan 2026 11:22:14 +0000 Pratyush Yadav <pratyush@xxxxxxxxxx> wrote:

> With 4k pages, a 32-bit nr_pages can span up to 16 TiB. While it is a
> lot, there exist systems with terabytes of RAM. gup is also moving to
> using long for nr_pages. Use unsigned long and make KHO future-proof.

We can expect people to be using LTS kernel five years from now,
perhaps much longer. Machines will be bigger then!

IOW, shouldn't we backport this?