linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Wei Yang <richard.weiyang@gmail.com>
To: akpm@linux-foundation.org
Cc: Wei Yang <richard.weiyang@gmail.com>,
	mhocko@suse.com, linux-mm@kvack.org
Subject: Re: [PATCH] mm: remove reset of pcp->counter in pageset_init()
Date: Wed, 7 Nov 2018 00:34:34 +0000	[thread overview]
Message-ID: <20181107003434.cqfao7dzo2qf7d3w@master> (raw)
In-Reply-To: <20181021023920.5501-1-richard.weiyang@gmail.com>

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@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

-- 
Wei Yang
Help you, Help me

      reply	other threads:[~2018-11-07  0:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-21  2:39 Wei Yang
2018-11-07  0:34 ` Wei Yang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181107003434.cqfao7dzo2qf7d3w@master \
    --to=richard.weiyang@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox