[PATCH] mm: print out memmap number only it is not zero - Kernel

This is a discussion on [PATCH] mm: print out memmap number only it is not zero - Kernel ; Impact: cleanup not print out for non used zone on nodes other than node0 Signed-off-by: Yinghai Lu --- mm/page_alloc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) Index: linux-2.6/mm/page_alloc.c ================================================== ================= --- linux-2.6.orig/mm/page_alloc.c +++ linux-2.6/mm/page_alloc.c @@ -3451,9 +3451,10 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH] mm: print out memmap number only it is not zero

  1. [PATCH] mm: print out memmap number only it is not zero


    Impact: cleanup

    not print out for non used zone on nodes other than node0

    Signed-off-by: Yinghai Lu

    ---
    mm/page_alloc.c | 7 ++++---
    1 file changed, 4 insertions(+), 3 deletions(-)

    Index: linux-2.6/mm/page_alloc.c
    ================================================== =================
    --- linux-2.6.orig/mm/page_alloc.c
    +++ linux-2.6/mm/page_alloc.c
    @@ -3451,9 +3451,10 @@ static void __paginginit free_area_init_
    PAGE_ALIGN(size * sizeof(struct page)) >> PAGE_SHIFT;
    if (realsize >= memmap_pages) {
    realsize -= memmap_pages;
    - printk(KERN_DEBUG
    - " %s zone: %lu pages used for memmap\n",
    - zone_names[j], memmap_pages);
    + if (memmap_pages)
    + printk(KERN_DEBUG
    + " %s zone: %lu pages used for memmap\n",
    + zone_names[j], memmap_pages);
    } else
    printk(KERN_WARNING
    " %s zone: %lu pages exceeds realsize %lu\n",
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  2. Re: [PATCH] mm: print out memmap number only it is not zero


    * Yinghai Lu wrote:

    > Impact: cleanup


    Impact: simplify debug printk output

    > not print out for non used zone on nodes other than node0
    >
    > Signed-off-by: Yinghai Lu


    looks good to me.

    Ingo
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread