diff options
| author | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-10-13 12:45:55 +0300 |
|---|---|---|
| committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-10-13 12:45:55 +0300 |
| commit | 80b1dad1d6f535d85b5b8dcea6f3d598847a7e63 (patch) | |
| tree | b6a12676d27204ff8d96944781132b1492e63490 /scripts/Makefile.thinlto | |
| parent | 92248b75d0198f989a83187e683a774a9c608263 (diff) | |
| parent | ea27be9f7ce90a05e779d20b60969ce2a9834f77 (diff) | |
| download | linux-80b1dad1d6f535d85b5b8dcea6f3d598847a7e63.tar.gz linux-80b1dad1d6f535d85b5b8dcea6f3d598847a7e63.zip | |
Merge patch series "memblock: Remove unused exact nid allocation API"
Kaitao Cheng <kaitao.cheng@linux.dev> says:
memblock: Remove unused exact nid allocation API
Commit ffe55393137c ("mm/sparse: remove sparse buffer pre-allocation
mechanism") removed the only memmap_alloc() caller that requested an
allocation from an exact NUMA node. All remaining callers allow fallback
to other nodes, leaving the exact_nid argument unused.
Remove the argument from memmap_alloc(). This leaves
memblock_alloc_exact_nid_raw() without any in-kernel callers, so move the
applicable exact-node allocation tests to memblock_alloc_range_nid() and
remove the unused API. Also remove the exact_nid argument from the internal
allocation helper, since all of its remaining callers allow fallback.
Exact-node allocation remains a required behavior of
memblock_alloc_range_nid(). CMA uses it when reserving per-node CMA areas;
allowing fallback could leave the area's recorded nid inconsistent with
the physical location of its memory. KHO also uses it for per-node scratch
areas that must remain on the requested node. Therefore, retain coverage
of this behavior by making the applicable NUMA tests call
memblock_alloc_range_nid() directly with exact_nid set.
The tests that exercise memblock_alloc_internal() retrying below min_addr
cannot be retained unchanged. Unlike memblock_alloc_internal(),
memblock_alloc_range_nid() treats its start address as a hard boundary and
does not retry from address zero. Remove those tests along with the now
unused TEST_F_EXACT dispatch from the shared allocation tests.
* patches from https://patch.msgid.link/20260919135327.74089-1-kaitao.cheng@linux.dev
mm: Remove unused exact_nid parameter from memmap_alloc()
memblock tests: Move exact nid tests to memblock_alloc_range_nid()
memblock: Remove unused memblock_alloc_exact_nid_raw()
Link: https://patch.msgid.link/20260919135327.74089-1-kaitao.cheng@linux.dev
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
