OSDN Git Service

mm/page_alloc: remove unnecessary parameter batch of nr_pcp_free
authorKemeng Shi <shikemeng@huaweicloud.com>
Wed, 9 Aug 2023 10:07:54 +0000 (18:07 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:50 +0000 (13:37 -0700)
commit1305870529d9e16170bb744148aab6dffb19bb23
tree24abb6ef2f211d24a4d6dfd7dd725f492cad52ee
parentf142b2c2530c1383a45e1ada1d641974b9723a35
mm/page_alloc: remove unnecessary parameter batch of nr_pcp_free

We get batch from pcp and just pass it to nr_pcp_free immediately.  Get
batch from pcp inside nr_pcp_free to remove unnecessary parameter batch.

Link: https://lkml.kernel.org/r/20230809100754.3094517-3-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c