[PATCH 0/3] cma: factor out HIGMEM logic from __cma_declare_contiguous_nid

From: Mike Rapoport
Date: Wed Jul 02 2025 - 13:36:20 EST


From: "Mike Rapoport (Microsoft)" <rppt@xxxxxxxxxx>

Hi,

We've discussed earlier that HIGHMEM related logic is spread all over
__cma_declare_contiguous_nid().

These patches decouple it into helper functions.

[1] https://lore.kernel.org/all/aCw9mpmhx9SrL8Oy@localhost.localdomain

Mike Rapoport (Microsoft) (3):
cma: move __cma_declare_contiguous_nid() before its usage
cma: split resrvation of fixed area into a helper function
cma: move allocation from HIGHMEM to a helper function

mm/cma.c | 315 +++++++++++++++++++++++++++++--------------------------
1 file changed, 165 insertions(+), 150 deletions(-)


base-commit: 86731a2a651e58953fc949573895f2fa6d456841
--
2.47.2