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

From: Mike Rapoport

Date: Tue Jan 20 2026 - 08:06:35 EST


On Fri, Jan 16, 2026 at 02:26:35PM -0800, Andrew Morton wrote:
> 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?

The latest LTS is 6.12 that still does not have KHO, I don't think it makes
sense to backport this to 6.18.

--
Sincerely yours,
Mike.