From: Pankaj Gupta <pagupta@redhat.com>
To: Yafang Shao <laoar.shao@gmail.com>
Cc: mhocko@suse.com, vbabka@suse.cz, akpm@linux-foundation.org,
linux-mm@kvack.org, shaoyafang@didiglobal.com
Subject: Re: [PATCH] mm/page_alloc: remove unnecessary parameter in rmqueue_pcplist
Date: Thu, 18 Apr 2019 09:08:16 -0400 (EDT) [thread overview]
Message-ID: <1356622727.22481182.1555592896337.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <1555591709-11744-1-git-send-email-laoar.shao@gmail.com>
>
> Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
> ---
> mm/page_alloc.c | 11 +++++------
> 1 file changed, 5 insertions(+), 6 deletions(-)
>
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index f752025..25518bf 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -3096,9 +3096,8 @@ static struct page *__rmqueue_pcplist(struct zone
> *zone, int migratetype,
>
> /* Lock and remove page from the per-cpu list */
> static struct page *rmqueue_pcplist(struct zone *preferred_zone,
> - struct zone *zone, unsigned int order,
> - gfp_t gfp_flags, int migratetype,
> - unsigned int alloc_flags)
> + struct zone *zone, gfp_t gfp_flags,
> + int migratetype, unsigned int alloc_flags)
> {
> struct per_cpu_pages *pcp;
> struct list_head *list;
> @@ -3110,7 +3109,7 @@ static struct page *rmqueue_pcplist(struct zone
> *preferred_zone,
> list = &pcp->lists[migratetype];
> page = __rmqueue_pcplist(zone, migratetype, alloc_flags, pcp, list);
> if (page) {
> - __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order);
> + __count_zid_vm_events(PGALLOC, page_zonenum(page), 1);
> zone_statistics(preferred_zone, zone);
> }
> local_irq_restore(flags);
> @@ -3130,8 +3129,8 @@ struct page *rmqueue(struct zone *preferred_zone,
> struct page *page;
>
> if (likely(order == 0)) {
> - page = rmqueue_pcplist(preferred_zone, zone, order,
> - gfp_flags, migratetype, alloc_flags);
> + page = rmqueue_pcplist(preferred_zone, zone, gfp_flags,
> + migratetype, alloc_flags);
> goto out;
> }
>
> --
> 1.8.3.1
Patch looks good to me.
Acked-by: Pankaj Gupta <pagupta@redhat.com>
>
>
prev parent reply other threads:[~2019-04-18 13:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-18 12:48 Yafang Shao
2019-04-18 13:04 ` Michal Hocko
2019-04-18 13:08 ` Pankaj Gupta [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=1356622727.22481182.1555592896337.JavaMail.zimbra@redhat.com \
--to=pagupta@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=laoar.shao@gmail.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=shaoyafang@didiglobal.com \
--cc=vbabka@suse.cz \
/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