Re: [PATCH] mm: do not overwrite reserved pages counter at show_mem()

From: Yasuaki Ishimatsu
Date: Mon Nov 17 2014 - 22:25:33 EST


(2014/11/15 3:34), Rafael Aquini wrote:
> Minor fixlet to perform the reserved pages counter aggregation
> for each node, at show_mem()
>
> Signed-off-by: Rafael Aquini <aquini@xxxxxxxxxx>
> ---

Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@xxxxxxxxxxxxxx>

Thanks,
Yasuaki Ishimatsu

> lib/show_mem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/show_mem.c b/lib/show_mem.c
> index 0922579..5e25627 100644
> --- a/lib/show_mem.c
> +++ b/lib/show_mem.c
> @@ -28,7 +28,7 @@ void show_mem(unsigned int filter)
> continue;
>
> total += zone->present_pages;
> - reserved = zone->present_pages - zone->managed_pages;
> + reserved += zone->present_pages - zone->managed_pages;
>
> if (is_highmem_idx(zoneid))
> highmem += zone->present_pages;
>


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