From patchwork Wed Aug 31 01:34:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zuoze X-Patchwork-Id: 12960248 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8A8BECAAD5 for ; Wed, 31 Aug 2022 01:34:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 13EFB6B0071; Tue, 30 Aug 2022 21:34:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0EE826B0072; Tue, 30 Aug 2022 21:34:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F1F498D0001; Tue, 30 Aug 2022 21:34:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E6EA06B0071 for ; Tue, 30 Aug 2022 21:34:51 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id BD09080615 for ; Wed, 31 Aug 2022 01:34:51 +0000 (UTC) X-FDA: 79858168782.29.98FD4BA Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf15.hostedemail.com (Postfix) with ESMTP id D4A98A0035 for ; Wed, 31 Aug 2022 01:34:50 +0000 (UTC) Received: from kwepemi500002.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MHRTS3HsXz1N7RW; Wed, 31 Aug 2022 09:31:08 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by kwepemi500002.china.huawei.com (7.221.188.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 31 Aug 2022 09:34:46 +0800 From: Ze Zuo To: , , CC: , zezuo Subject: [PATCH-next] mm:delete a redundant parameter of rmqueue_pcplist Date: Wed, 31 Aug 2022 01:34:04 +0000 Message-ID: <20220831013404.3360714-1-zuoze1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500002.china.huawei.com (7.221.188.171) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of zuoze1@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=zuoze1@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661909691; a=rsa-sha256; cv=none; b=hL/nh4cCoeGLAsjgpd+hBXDZM65/DIuvW0hIUZuJU8WCvaoOkh8V90yaX0WihAI/9jjcaB yEdmnwXAzbu4HAHgh5O7NILk+ZkC0b2zDKLl9ImUmjyYZqFft4t9FXfe5W4mHutZiR7+l9 upygg03jVTWtnx04Yfx96PyvgoDR3S4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661909691; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=vqj4UWk8sqHQ5J0JEa+SNCAnskGCzVfR6ufzHFWTbc8=; b=Y/tZQTxWAXgSDWuIRn1/REHGjr6ycs+dVTiCvCBScmJXn9p2bZmkf21zf5qvhcD3z46Ymq I4oJG3j3wU+04K6hhetVmLX0lvvTWAC1Gn4yrCGHtKyugOj8y7dFMCyJW2yn9xfyhrh8zC 4A91zJhQY97Z8hQMCWILwfIWj7uZmLQ= X-Rspam-User: Authentication-Results: imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of zuoze1@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=zuoze1@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspamd-Server: rspam02 X-Stat-Signature: hbfeew4ku4xxx71je5n7r8kudjfn18ip X-Rspamd-Queue-Id: D4A98A0035 X-HE-Tag: 1661909690-729534 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: zezuo The gfp_flags parameter is not used in rmqueue_pcplist, so directly delete this parameter. Signed-off-by: zezuo --- mm/page_alloc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 40bfc6b29014..7333cd75bdd5 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3779,8 +3779,7 @@ struct page *__rmqueue_pcplist(struct zone *zone, unsigned int order, /* 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) + int migratetype, unsigned int alloc_flags) { struct per_cpu_pages *pcp; struct list_head *list; @@ -3841,7 +3840,7 @@ struct page *rmqueue(struct zone *preferred_zone, if (!IS_ENABLED(CONFIG_CMA) || alloc_flags & ALLOC_CMA || migratetype != MIGRATE_MOVABLE) { page = rmqueue_pcplist(preferred_zone, zone, order, - gfp_flags, migratetype, alloc_flags); + migratetype, alloc_flags); if (likely(page)) goto out; }