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

Andrew Morton akpm at linux-foundation.org
Fri Jan 16 14:26:35 PST 2026


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?




More information about the kexec mailing list