bootmem rewrite v4
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | bootmem: reorder code to match new bootmem structureinclude/ mm/ | +246 | 0 replies | |
| 2/14 | bootmem: clean up bootmem.c file headermm/ | +5 | 0 replies | |
| 3/14 | bootmem: add documentation to API functionsmm/ | +149 | 0 replies | |
| 4/14 | bootmem: add debugging frameworkmm/ | +44 | 0 replies | |
| 5/14 | bootmem: revisit bitmap size calculationsmm/ | +9 | 0 replies | |
| 6/14 | bootmem: revisit bootmem descriptor list handlingmm/ | +10 | 0 replies | |
| 7/14 | bootmem: clean up free_all_bootmem_coremm/ | +38 | 0 replies | |
| 8/14 | bootmem: clean up alloc_bootmem_coreinclude/ mm/ | +81 | 3 replies | |
| 9/14 | bootmem: free/reserve helpersmm/ | +43 | 0 replies | |
| 10/14 | bootmem: factor out the marking of a PFN rangeinclude/ mm/ | +71 | 0 replies | |
| 11/14 | bootmem: respect goal more likelymm/ | +54 | 0 replies | |
| 12/14 | bootmem: Make __alloc_bootmem_low_node fall back to other nodesmm/ | +16 | 0 replies | |
| 13/14 | bootmem: revisit alloc_bootmem_sectionmm/ | +6 | 0 replies | |
| 14/14 | bootmem: replace node_boot_start in struct bootmem_dataarch/ arch/ arch/ +7 more | +40 | 0 replies |
Reviews trailers per patch
1 of 14 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Yasunori Goto | Johannes Weiner |
|---|---|---|
| Series | A-b | |
| 1/14 | ||
| 2/14 | ||
| 3/14 | ||
| 4/14 | ||
| 5/14 | ||
| 6/14 | ||
| 7/14 | ||
| 8/14 | A-b | |
| 9/14 | ||
| 10/14 | ||
| 11/14 | ||
| 12/14 | ||
| 13/14 | ||
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH -mm 00/14] bootmem rewrite v4
Hi,
This is a complete overhaul of the bootmem allocator while preserving most of its original functionality.
free_bootmem and reserve_bootmem become a bit stricter than they are right now, callsites have to make sure that the PFN range is contiguous but it might go across node boundaries.
alloc_bootmem satisfying the allocation goal is more likely as the routines will try to allocate on the node holding the goal first before falling back as opposed to the original behaviour that satisfies the goal only if it is on the first node.
All in all, I think the code has become simpler and cleaner. All public interfaces have been documented, too.
version 4: based on -mmotm from 08-06-05
o fixed fallback logic in alloc_bootmem_core (take the fallback even in cases where sidx is zero) to make Yasunori's machine boot again
o fixed bogus range checks in ___alloc_bootmem_nopanic
o removed bogus `fallback'-offset calculation in alloc_bootmem_core
o renamed last_offset to last_end_off
o renamed last_success to hint_idx
o start searching after the end of the previous allocation, not at its beginning
o improved more identifier names for offsets, pfns, indices and addresses
o adjusted debugging output to output hex numbers consistently
version 3:
o fixed kerneldoc as noted by Chris Malley
o fixed incorrect bdata->last_success treatment as noted by Yasunori Goto
version 2:
o broken up patches into logical chunks
---
arch/alpha/mm/numa.c | 2 +- arch/arm/plat-omap/fb.c | 4 +- arch/avr32/mm/init.c | 3 +- arch/ia64/mm/discontig.c | 19 +- arch/m32r/mm/discontig.c | 3 +- arch/m32r/mm/init.c | 4 +- arch/mn10300/mm/init.c | 6 +- arch/sh/mm/init.c | 2 +- include/linux/bootmem.h | 87 +++--- mm/bootmem.c | 934 +++++++++++++++++++++++++--------------------- 10 files changed, 570 insertions(+), 494 deletions(-)