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

Mike Rapoport rppt at kernel.org
Tue Jan 20 05:06:28 PST 2026


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 at kernel.org> 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.



More information about the kexec mailing list