mm/page_alloc.c: delete a redundant parameter of rmqueue_pcplist
The gfp_flags parameter is not used in rmqueue_pcplist, so directly delete this parameter. Link: https://lkml.kernel.org/r/20220831013404.3360714-1-zuoze1@huawei.com Signed-off-by: zezuo <zuoze1@huawei.com> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
@@ -3779,8 +3779,7 @@ struct page *__rmqueue_pcplist(struct zone *zone, unsigned int order,
|
|||||||
/* Lock and remove page from the per-cpu list */
|
/* Lock and remove page from the per-cpu list */
|
||||||
static struct page *rmqueue_pcplist(struct zone *preferred_zone,
|
static struct page *rmqueue_pcplist(struct zone *preferred_zone,
|
||||||
struct zone *zone, unsigned int order,
|
struct zone *zone, unsigned int order,
|
||||||
gfp_t gfp_flags, int migratetype,
|
int migratetype, unsigned int alloc_flags)
|
||||||
unsigned int alloc_flags)
|
|
||||||
{
|
{
|
||||||
struct per_cpu_pages *pcp;
|
struct per_cpu_pages *pcp;
|
||||||
struct list_head *list;
|
struct list_head *list;
|
||||||
@@ -3841,7 +3840,7 @@ struct page *rmqueue(struct zone *preferred_zone,
|
|||||||
if (!IS_ENABLED(CONFIG_CMA) || alloc_flags & ALLOC_CMA ||
|
if (!IS_ENABLED(CONFIG_CMA) || alloc_flags & ALLOC_CMA ||
|
||||||
migratetype != MIGRATE_MOVABLE) {
|
migratetype != MIGRATE_MOVABLE) {
|
||||||
page = rmqueue_pcplist(preferred_zone, zone, order,
|
page = rmqueue_pcplist(preferred_zone, zone, order,
|
||||||
gfp_flags, migratetype, alloc_flags);
|
migratetype, alloc_flags);
|
||||||
if (likely(page))
|
if (likely(page))
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user