Skip to content

Cleanups and fixup for page_alloc

Miaohe Lin linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review 4 of 5 applied
  2. v16 patches 29 repliesSuperseded

Changes in v2 from the cover letter

collect Reviewed-by and Acked-by tag
preserve valid comments for free_pcppages_bulk
send patch "mm/page_alloc.c: avoid accessing uninitialized pcp page
migratetype" separately.
s/__GFP_COMP/(__GFP_COMP|__GFP_HIGHMEM)/g throughout both
alloc_pages_exact() and alloc_pages_exact_nid()

Patches in v2 4 of 5 applied

#Subject and filesSizeRepliesApplied
1/5mm/page_alloc.c: remove meaningless VM_BUG_ON() in pindex_to_order()mm/page_alloc.c+1 -30 replies
2/5mm/page_alloc.c: simplify the code by using macro K()mm/page_alloc.c+5 -70 repliesApplied
3/5mm/page_alloc.c: fix obsolete comment in free_pcppages_bulk()mm/page_alloc.c+1 -71 replyApplied
4/5mm/page_alloc.c: use helper function zone_spans_pfn()mm/page_alloc.c+1 -10 repliesApplied
5/5mm/page_alloc.c: avoid allocating highmem pages via alloc_pages_exact[_nid]mm/page_alloc.c+4 -42 repliesApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchMel GormanDavid Hildenbrand
1/5A-b R-b
2/5A-b R-b
3/5A-b
4/5A-b R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] Cleanups and fixup for page_alloc

Hi all,
This series contains cleanups to remove meaningless VM_BUG_ON(), use helpers to simplify the code and remove obsolete comment. Also we avoid allocating highmem pages via alloc_pages_exact[_nid]. More details can be found in the respective changelogs. Thanks!

v1->v2:
collect Reviewed-by and Acked-by tag
preserve valid comments for free_pcppages_bulk
send patch "mm/page_alloc.c: avoid accessing uninitialized pcp page
migratetype" separately.
s/__GFP_COMP/(__GFP_COMP|__GFP_HIGHMEM)/g throughout both
alloc_pages_exact() and alloc_pages_exact_nid()

Miaohe Lin (5):
mm/page_alloc.c: remove meaningless VM_BUG_ON() in pindex_to_order() mm/page_alloc.c: simplify the code by using macro K() mm/page_alloc.c: fix obsolete comment in free_pcppages_bulk() mm/page_alloc.c: use helper function zone_spans_pfn() mm/page_alloc.c: avoid allocating highmem pages via
alloc_pages_exact[_nid]

 mm/page_alloc.c | 34 ++++++++++++----------------------
 1 file changed, 12 insertions(+), 22 deletions(-)
Signature · 1 line
2.23.0