From patchwork Wed Aug 9 09:49:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13347302 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 DFC26C001B0 for ; Wed, 9 Aug 2023 01:49:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 095F76B0071; Tue, 8 Aug 2023 21:49:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 045DB6B0074; Tue, 8 Aug 2023 21:49:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E50368D0001; Tue, 8 Aug 2023 21:49:10 -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 D23B36B0071 for ; Tue, 8 Aug 2023 21:49:10 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id AF18E1608D4 for ; Wed, 9 Aug 2023 01:49:10 +0000 (UTC) X-FDA: 81102883260.25.E1259FF Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by imf08.hostedemail.com (Postfix) with ESMTP id 993C216000B for ; Wed, 9 Aug 2023 01:49:07 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; dmarc=none; spf=none (imf08.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.51) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691545748; a=rsa-sha256; cv=none; b=P508d88ZBbz+cr3K8mQqIT8EBIW53aqhz2VuI1/PuqHfcgNuvmn8hnT2ViySAamWSOUgqR hmydL8zNSvKzUIYQcpbUIlroUaPcktAX/SffR/eIpkYz24FC0i+cN9pakYEqYunFBqAcwA jQLQr38BE0exPdA/3oCtetTvMyTJvUY= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; dmarc=none; spf=none (imf08.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.51) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691545748; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=NR6c5kzH8sz5lKq2bC2T8/IkrlN4U8ZYHWj4YR5B/Ws=; b=jMRCAbNUn3gqOs7smB0ryDL9CqY75DgTsT88pbO4cVyvhClFT8DJYgpV1Bw2fKT9ENIiAL hE/ovxmWOloZVIL4sqPHWsQt4dmICv7KQN/H1MMdxkhaQYtUD1gKVt08YIG7zJdEqjuXOO /krS/+Lz6E5JgylEpdrkVl06d93eIkg= Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4RLCdn4DFCz4f3mWK for ; Wed, 9 Aug 2023 09:49:01 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgDnCW6M8NJk7QYSAQ--.39503S2; Wed, 09 Aug 2023 09:49:01 +0800 (CST) From: Kemeng Shi To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, baolin.wang@linux.alibaba.com, mgorman@techsingularity.net, david@redhat.com, willy@infradead.org Cc: shikemeng@huaweicloud.com Subject: [PATCH] mm/compaction: remove unused parameter pgdata of fragmentation_score_wmark Date: Wed, 9 Aug 2023 17:49:10 +0800 Message-Id: <20230809094910.3092446-1-shikemeng@hua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2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7sRi Pl1DUUUUU== X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 993C216000B X-Stat-Signature: qm1npfx3ezxdtsmaiyuk846j1u118x8s X-Rspam-User: X-HE-Tag: 1691545747-914139 X-HE-Meta: U2FsdGVkX1/HVzlRklBlKmXsDAtLuNMDwMM++lLRG42+xtq5k+7gEoBIUQBLPbvNhvJoD2UR/C6zP+XGfGtXC1wWsy4jWqr1yKunY2VHBquZpGUq4CMZn+KrCocWWsrQyMqzk+0mCG4iW7rqtJ+uCnEd+/PJAl3ocNKg0+F6EjAYLaMQVVPKLpKPAP9fYSiJPNDD75rLyiY2n/OhvYw3x4IeJzuivTltixw/FLGEOGc/XdKzFaaanYYqoiGo747T18TyuofJpZlwlvNkAe/ZNRUQBISDjxrjjPjB5MYzZj8+oW5Q2nppSsU+CxZPmeSYFICHCowEEtVn0dvlmDYRc8+ms7DjQNoPkDANspWVLTorvA8kIdmSc1hnj/RDFrN42zo3H56PmimqcblsHchCz81+b1AZvs2dS97NpRoDX41SSOH6F/TKRBlM7wCbbZEeG8u3cNVqm02GYMVeC/aKMfUTax0km7tniwl3a/CGNWFjNfw50unn1r59NJ6oVj6y1o//nQAFzibsNAc0/p1fWWEHZwN6sBpu95FUSz+AaNlhdWK8PNoJ0ZJnmvDW48N4xWp4URLIm1y29T8+qJGiyNaU4cnMAwN4IQUKlk4eOvsLHRZZKnjHX1D0u70JT4jJwqDHx85CxjdAbowGnoBL3c38+TcRVy9HotoOrQ4RRWlDynRh+3X5gdF6pjYLPKlyS3yOIXG9gCepHaZsnApjcwnirKmMkHa56t3dd/QvmeztO7uEFJxcLVAmqq03sUmpNogs80DCe1guI8qscNSxM352eletl7cWX1cohzP5TDxpLkEX1FxKBhC274kKoL3nph9IL75G9iHkdo6TEsUcring+KLSBZo6jOQB0TtUpvx0JCsQmDSEmOXgxMrYD5vIKxj6dr/lANXdtwUyfIZ5h8YFk/cqzceUmaCPx8E1rX1mnlKbnrL74CPof93E31v9rDiHioHh/NzgfGnFFpM EZiOwMiD XZZrAlDmzSXbNXH+XbLcYld+TsSB7vujn54EDLi6ZjiNhHOmE/O6KStqBbF08ut0xK9EidxpCmTXSni2Ny4mQEpJbeA9Npr7LlEfIC7hcSDq9ozkcbIxGbuVibOqRYjnDs4HoM/f4G5qXmiIZFfJ2FkpfPv0ROAi02evMd+e4FRfEWoVCPMTyroign7gSaISI85igvVpLCPOyQ0hP0Qymv9EcAn7AJH8y8JGkBi3HNX9VdpsAVLji6XzCXGaExLHPbq34Wl6SWP6QNR9VND505aWtuBPpnxIh0J6E+hSrvc99u8suDFiCzbtn0bqijzoW7PG3 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: Parameter pgdat is not used in fragmentation_score_wmark. Just remove it. Signed-off-by: Kemeng Shi Reviewed-by: David Hildenbrand Acked-by: Mel Gorman Reviewed-by: Baolin Wang --- mm/compaction.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/compaction.c b/mm/compaction.c index ea61922a1619..38c8d216c6a3 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -2142,7 +2142,7 @@ static unsigned int fragmentation_score_node(pg_data_t *pgdat) return score; } -static unsigned int fragmentation_score_wmark(pg_data_t *pgdat, bool low) +static unsigned int fragmentation_score_wmark(bool low) { unsigned int wmark_low; @@ -2162,7 +2162,7 @@ static bool should_proactive_compact_node(pg_data_t *pgdat) if (!sysctl_compaction_proactiveness || kswapd_is_running(pgdat)) return false; - wmark_high = fragmentation_score_wmark(pgdat, false); + wmark_high = fragmentation_score_wmark(false); return fragmentation_score_node(pgdat) > wmark_high; } @@ -2201,7 +2201,7 @@ static enum compact_result __compact_finished(struct compact_control *cc) return COMPACT_PARTIAL_SKIPPED; score = fragmentation_score_zone(cc->zone); - wmark_low = fragmentation_score_wmark(pgdat, true); + wmark_low = fragmentation_score_wmark(true); if (score > wmark_low) ret = COMPACT_CONTINUE;