The patch titled Subject: mm/page_alloc: add informative debugging message in page_outside_zone_boundaries() has been added to the -mm tree. Its filename is mm-page_alloc-add-informative-debugging-message-in-page_outside_zone_boundaries.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: Cody P Schafer <cody@xxxxxxxxxxxxxxxxxx> Subject: mm/page_alloc: add informative debugging message in page_outside_zone_boundaries() Add a debug message which prints when a page is found outside of the boundaries of the zone it should belong to. Format is: "page $pfn outside zone [ $start_pfn - $end_pfn ]" Signed-off-by: Cody P Schafer <cody@xxxxxxxxxxxxxxxxxx> Cc: David Hansen <dave@xxxxxxxxxxxxxxxxxx> Cc: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Mel Gorman <mel@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_alloc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff -puN mm/page_alloc.c~mm-page_alloc-add-informative-debugging-message-in-page_outside_zone_boundaries mm/page_alloc.c --- a/mm/page_alloc.c~mm-page_alloc-add-informative-debugging-message-in-page_outside_zone_boundaries +++ a/mm/page_alloc.c @@ -246,13 +246,20 @@ static int page_outside_zone_boundaries( int ret = 0; unsigned seq; unsigned long pfn = page_to_pfn(page); + unsigned long sp, start_pfn; do { seq = zone_span_seqbegin(zone); + start_pfn = zone->zone_start_pfn; + sp = zone->spanned_pages; if (!zone_spans_pfn(zone, pfn)) ret = 1; } while (zone_span_seqretry(zone, seq)); + if (ret) + pr_debug("page %lu outside zone [ %lu - %lu ]\n", + pfn, start_pfn, start_pfn + sp); + return ret; } _ Patches currently in -mm which might be from cody@xxxxxxxxxxxxxxxxxx are linux-next.patch mm-add-section_in_page_flags.patch mm-add-use-zone_end_pfn-and-zone_spans_pfn.patch mm-add-zone_is_empty-and-zone_is_initialized.patch mm-page_alloc-add-a-vm_bug-in-__free_one_page-if-the-zone-is-uninitialized.patch mmzone-add-pgdat_end_pfnis_empty-helpers-consolidate.patch mm-page_alloc-add-informative-debugging-message-in-page_outside_zone_boundaries.patch mm-page_alloc-add-informative-debugging-message-in-page_outside_zone_boundaries-fix.patch mm-add-helper-ensure_zone_is_initialized.patch mm-memory_hotplug-use-ensure_zone_is_initialized.patch mm-memory_hotplug-use-pgdat_end_pfn-instead-of-open-coding-the-same.patch maintainers-mm-add-additional-include-files-to-listing.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