From patchwork Wed Aug 9 07:33:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Zhang X-Patchwork-Id: 13347498 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 2B528C0015E for ; Wed, 9 Aug 2023 07:33:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A4AEB6B007B; Wed, 9 Aug 2023 03:33:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9FA018D0002; Wed, 9 Aug 2023 03:33:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8E9A88D0001; Wed, 9 Aug 2023 03:33:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 7D6C46B007B for ; Wed, 9 Aug 2023 03:33:38 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 5194DB2731 for ; Wed, 9 Aug 2023 07:33:38 +0000 (UTC) X-FDA: 81103751316.14.5A30A49 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf01.hostedemail.com (Postfix) with ESMTP id 54D874001D for ; Wed, 9 Aug 2023 07:33:34 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf01.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691566416; a=rsa-sha256; cv=none; b=0k9BoSpbwSeoEqX4PBg9wD02O58Fy2zX1usyAt1QppIeYBXmqX4dWECrPx5iJo7+dRiJrA pDHWOwTlVSOPkEa6eKHui00rIIRV31/f3GeDKxx/uztB2bhBN77QWhrdw8zOBSLF3AMq9F sIWvuV9Rpzlv4XRpzlf//aJ6gVnUsZU= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf01.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691566416; 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=/54VHnwmZ4d///3cX2IplEmE9BoMcMsD4mOIIjWHJNw=; b=2hMlArnPJJ8zmgkRZDBuYIbDFNYwrGZanle7Uh6Wi8o/oIDdjoOIYZL4K00FPmviWwUGIA 6xTZL9BK65OSpXBeA3LCAbTNyyI4cS+iVbgNLX3opP0tVSjVtpBQK9jvUjHNQ4+A7HJd9X Xzj6NBT7H2HDENV4kY6y2uXYnLiyIps= Received: from kwepemm600020.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RLMFs6ZkZzmXL9; Wed, 9 Aug 2023 15:32:17 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by kwepemm600020.china.huawei.com (7.193.23.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 9 Aug 2023 15:33:28 +0800 From: Peng Zhang To: CC: , , , , ZhangPeng Subject: [PATCH] mm: page_alloc: remove unused parameter from reserve_highatomic_pageblock() Date: Wed, 9 Aug 2023 15:33:23 +0800 Message-ID: <20230809073323.1065286-1-zhangpeng362@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600020.china.huawei.com (7.193.23.147) X-CFilter-Loop: Reflected X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 54D874001D X-Stat-Signature: exsid15t1tu39377d4mnw795wkabch8d X-Rspam-User: X-HE-Tag: 1691566414-907878 X-HE-Meta: U2FsdGVkX1+HqbggZRLzWk+tD0OOAa0DSX7UH3jd7AXcI8+5YYUWpRRQTga9ROmq48DijN9o5fM6xCaBrbzsdUnJst0YYdT2XIa/91SsF+gXgCHbO182iY1rki+OFxGYTHDrTPDDOU2niGuRXfVZnOl6pYISaeNMcMBkNOPtp1cHKRBAqpPNSKj/USmYwYmvg86Ix0UPm2YrdUggt8iiI/8moJVLa/JaeLDwQLcP1dTfDTGW2iapZn5HhcdgFnsI7Z8qzVgj+L/n9NgSdvlxPRKjYCN/Zl1XYYdnT1bU4ZVbhk5XT1hdNkp16RIpkKxVZb9uO44MzHn9n+3zWWP50pYSfPfovWbcvqCZ1xa7EKEiah3RpmFPRXuSH+kK2ademjJQCf5aX3Z+FqvuEwegxkJkEqaFVDYgTfjrqWZQc4qLBvg9/hMpdslY/iCwBq5X2Mcq6nKfUmr5Gcd8so4elxZGelURJdKNcz1IGqhQggEn4xS9swSYjNoJwhIjQ5GLJozrXrFrrKVAFiWq6X5uTNJ+nTHj5O4856iDltNaBIYMCHcFfkW23Tv7qd3D5qj9S9f/hAfmWZMozO4YKqVuH0ejn+VVFzthRO7pGKCXhPFo8OljXcUOfp0tF4ewDnwWDphMtnTyF8ZGDeufYIOPnl1tQjBT3cmx08x1j/5sfNx0vAoKiBi4ztwu6CPnv38simTwmthT+UqPKB8X++JMOr3JS8e4Q3XymgR1KklI2ZOmR3nLXO70M+hBixaEUWhje73l0XR/Zd/DWaxgMzVDp1x0WnrgWu09JmILzMD/+kJkc7Ql4z+7jtCPL2WrUzkheTsP+iwsau2DiijusX4ghAqkh88QyOEQYhTApgxNkj9KqZ5Oa0+90tzjZWriNUMg9P8WuhC3M+dREVrrBhw54asXlx7CSEoaD8qH7szQo/yUACVBHAFomuu69dlHg/GkJx73toTUHayGTvzt9aH GfjVNCCC OHXn57hAdFU4twTDLCzNQ4TlcMQ56aG317IWAFzN+AX72iziyoITLA6WqIV5NJHGFi9ambnrNQrcTm4v1/Pc+sQX8lTuAsyD/7kuDE3x3ox+UImIg2GjNhP1u0iHa/BKI5OFLVt9X7qSiXnYgrY6J5TA6ZJrhSqHqpgFFghrKU8r7bIJYttFPG98154Bhs4jC/GzW 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: ZhangPeng Just remove the redundant parameter alloc_order from reserve_highatomic_pageblock(). No functional modification involved. Signed-off-by: ZhangPeng --- 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 96b7c1a7d1f2..d332664b3d02 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1908,8 +1908,7 @@ int find_suitable_fallback(struct free_area *area, unsigned int order, * Reserve a pageblock for exclusive use of high-order atomic allocations if * there are no empty page blocks that contain a page with a suitable order */ -static void reserve_highatomic_pageblock(struct page *page, struct zone *zone, - unsigned int alloc_order) +static void reserve_highatomic_pageblock(struct page *page, struct zone *zone) { int mt; unsigned long max_managed, flags; @@ -3257,7 +3256,7 @@ get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, * if the pageblock should be reserved for the future */ if (unlikely(alloc_flags & ALLOC_HIGHATOMIC)) - reserve_highatomic_pageblock(page, zone, order); + reserve_highatomic_pageblock(page, zone); return page; } else {