linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: remove reset of pcp->counter in pageset_init()
@ 2018-10-21  2:39 Wei Yang
  2018-11-07  0:34 ` Wei Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yang @ 2018-10-21  2:39 UTC (permalink / raw)
  To: akpm, mhocko; +Cc: linux-mm, Wei Yang

per_cpu_pageset is cleared by memset, it is not necessary to reset it
again.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-07  0:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-21  2:39 [PATCH] mm: remove reset of pcp->counter in pageset_init() Wei Yang
2018-11-07  0:34 ` Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).