diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 480b43d685e5..12ca19b055bf 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -7665,6 +7665,11 @@ unsigned long free_reserved_area(void *start, void *end, int poison, const char pr_info("Freeing %s memory: %ldK\n", s, pages << (PAGE_SHIFT - 10)); +#ifdef CONFIG_HAVE_MEMBLOCK + memblock_dbg("memblock_free: [%#016llx-%#016llx] %pS\n", + __pa(start), __pa(end), (void *)_RET_IP_); +#endif + return pages; } EXPORT_SYMBOL_GPL(free_reserved_area);