[PATCH v2 0/2] kho: clean up page initialization logic

Pratyush Yadav pratyush at kernel.org
Fri Jan 16 03:22:13 PST 2026


From: "Pratyush Yadav (Google)" <pratyush at kernel.org>

Hi,

This series simplifies the page initialization logic in kho_restore_page(). It
was originally only a single patch [0], but on Pasha's suggestion, I added
another patch to use unsigned long for nr_pages.

Technically speaking, the patches aren't related and can be applied
independently, but bundling them together since patch 2 relies on 1 and it is
easier to manage them this way.

Changes in v2:
- Use unsigned long for nr_pages.

[0] https://lore.kernel.org/all/20251223104448.195589-1-pratyush@kernel.org/

Pratyush Yadav (2):
  kho: use unsigned long for nr_pages
  kho: simplify page initialization in kho_restore_page()

 include/linux/kexec_handover.h     |  6 ++--
 kernel/liveupdate/kexec_handover.c | 47 +++++++++++++++++++-----------
 2 files changed, 33 insertions(+), 20 deletions(-)


base-commit: 0f61b1860cc3f52aef9036d7235ed1f017632193
-- 
2.52.0.457.g6b5491de43-goog




More information about the kexec mailing list