Re: [PATCH] mm: remove reset of pcp->counter in pageset_init()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew,

Do you like this tiny one :-)

On Sun, Oct 21, 2018 at 10:39:20AM +0800, Wei Yang wrote:
>per_cpu_pageset is cleared by memset, it is not necessary to reset it
>again.
>
>Signed-off-by: Wei Yang <richard.weiyang@xxxxxxxxx>
>---
> mm/page_alloc.c | 1 -
> 1 file changed, 1 deletion(-)
>
>diff --git a/mm/page_alloc.c b/mm/page_alloc.c
>index 15ea511fb41c..730fadd9b639 100644
>--- a/mm/page_alloc.c
>+++ b/mm/page_alloc.c
>@@ -5647,7 +5647,6 @@ static void pageset_init(struct per_cpu_pageset *p)
> 	memset(p, 0, sizeof(*p));
> 
> 	pcp = &p->pcp;
>-	pcp->count = 0;
> 	for (migratetype = 0; migratetype < MIGRATE_PCPTYPES; migratetype++)
> 		INIT_LIST_HEAD(&pcp->lists[migratetype]);
> }
>-- 
>2.15.1

-- 
Wei Yang
Help you, Help me




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux