Skip to content

mm/page_alloc.c: cleanup on check page

Wei Yang linux-mm lkml 1 version Applied

Status from this message: [merged] mm-page_allocc-extract-check__page_bad-common-part-to-page_bad_reason.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest5 patches 1 replyApplied 5/5

Patches in v3 All 5 applied

#Subject and filesSizeRepliesApplied
1/5mm/page_alloc.c: bad_[reason|flags] is not necessary when PageHWPoisonmm/page_alloc.c+5 -70 repliesApplied
2/5mm/page_alloc.c: bad_flags is not necessary for bad_page()mm/page_alloc.c+10 -240 repliesApplied
3/5mm/page_alloc.c: rename free_pages_check_bad() to check_free_page_bad()mm/page_alloc.c+2 -20 repliesApplied
4/5mm/page_alloc.c: rename free_pages_check() to check_free_page()mm/page_alloc.c+5 -50 repliesApplied
5/5mm/page_alloc.c: extract check_[new|free]_page_bad() common part to page_bad_reason()mm/page_alloc.c+17 -190 repliesApplied

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchMichal HockoDavid Hildenbrand
1/5A-b R-b
2/5
3/5
4/5
5/5

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

Read the v3 thread

Cover letter [Patch v3 0/5] mm/page_alloc.c: cleanup on check page

The patch set does some cleanup related to check page.

1. Remove unnecessary bad_reason assignment
2. Remove bad_flags to bad_page()
3. Rename function for naming convention
4. Extract common part to check page

Thanks suggestions from David Rientjes and Anshuman Khandual.

Wei Yang (5):
mm/page_alloc.c: bad_[reason|flags] is not necessary when PageHWPoison mm/page_alloc.c: bad_flags is not necessary for bad_page() mm/page_alloc.c: rename free_pages_check_bad() to
check_free_page_bad()
mm/page_alloc.c: rename free_pages_check() to check_free_page() mm/page_alloc.c: extract check_[new|free]_page_bad() common part to
page_bad_reason()

 mm/page_alloc.c | 74 +++++++++++++++++++------------------------------
 1 file changed, 28 insertions(+), 46 deletions(-)
Signature · 1 line
2.23.0