mm: print out memmap number only if it is not zero
Don't print the size of the zone's memmap array if it does not have one. Impact: cleanup Signed-off-by: Yinghai Lu <yinghai@kernel.org> Cc: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c04fc586c1
commit
5594c8c813
|
@ -3469,6 +3469,7 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat,
|
|||
PAGE_ALIGN(size * sizeof(struct page)) >> PAGE_SHIFT;
|
||||
if (realsize >= memmap_pages) {
|
||||
realsize -= memmap_pages;
|
||||
if (memmap_pages)
|
||||
printk(KERN_DEBUG
|
||||
" %s zone: %lu pages used for memmap\n",
|
||||
zone_names[j], memmap_pages);
|
||||
|
|
Loading…
Reference in New Issue