memblock: some fix for memmap_init_reserved_pages()
Status from this message: Applied to for-next branch of memblock.git tree, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 5 repliesApplied
- v13 patches 4 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mm/memblock: pass size instead of end to memblock_set_node()mm/ | +1 | 1 reply | |
| 2/3 | mm/memblock: repeat setting reserved region nid if array is doubledmm/ | +10 | 2 replies | |
| 3/3 | memblock tests: add test for memblock_set_nodetools/ | +102 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Anshuman Khandual |
|---|---|
| 1/3 | R-b |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Patch v2 0/3] memblock: some fix for memmap_init_reserved_pages()
During code review, I found we may leave some reserved region with invalid nid when memblock_set_node() double the array. The patch set propose a fix and test case.
Also I found memblock_set_node() accept size instead of end as second parameter. Currently it is misused.
Patch 1: fix the second argument passed to memblock_set_node() Patch 2: fix the invalid node id we may have in memmap_init_reserved_pages() Patch 3: add a test case to verify it
v2: move check out side of the loop
Wei Yang (3):
mm/memblock: pass size instead of end to memblock_set_node() mm/memblock: repeat setting reserved region nid if array is doubled memblock tests: add test for memblock_set_node
mm/memblock.c | 12 ++- tools/testing/memblock/tests/basic_api.c | 102 +++++++++++++++++++++++ 2 files changed, 113 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1