The patch titled Subject: mm/page_owner: align with pageblock_nr_pages has been added to the -mm tree. Its filename is mm-page_owner-align-with-pageblock_nr_pages.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-page_owner-align-with-pageblock_nr_pages.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-page_owner-align-with-pageblock_nr_pages.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: zhong jiang <zhongjiang@xxxxxxxxxx> Subject: mm/page_owner: align with pageblock_nr_pages Currently, init_pages_in_zone() walks the zone in pageblock_nr_pages steps. MAX_ORDER_NR_PAGES is possible to have holes when CONFIG_HOLES_IN_ZONE is set. it is likely to be different between MAX_ORDER_NR_PAGES and pageblock_nr_pages. if we skip the size of MAX_ORDER_NR_PAGES, it will result in the second 2M memroy leak. Meanwhile, the change will make the code consistent. because the entire function is based on the pageblock_nr_pages steps. Link: http://lkml.kernel.org/r/1512395284-13588-1-git-send-email-zhongjiang@xxxxxxxxxx Signed-off-by: zhong jiang <zhongjiang@xxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_owner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/page_owner.c~mm-page_owner-align-with-pageblock_nr_pages mm/page_owner.c --- a/mm/page_owner.c~mm-page_owner-align-with-pageblock_nr_pages +++ a/mm/page_owner.c @@ -544,7 +544,7 @@ static void init_pages_in_zone(pg_data_t */ for (; pfn < end_pfn; ) { if (!pfn_valid(pfn)) { - pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); + pfn = ALIGN(pfn + 1, pageblock_nr_pages); continue; } _ Patches currently in -mm which might be from zhongjiang@xxxxxxxxxx are mm-page_owner-align-with-pageblock_nr_pages.patch mm-page_owner-align-with-pageblock_nr-pages.patch mm-walk-the-zone-in-pageblock_nr_pages-steps.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html