From patchwork Thu Jul 6 09:24:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13303413 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 09355EB64DC for ; Thu, 6 Jul 2023 09:24:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4652C8D0002; Thu, 6 Jul 2023 05:24:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 415478D0001; Thu, 6 Jul 2023 05:24:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 304808D0002; Thu, 6 Jul 2023 05:24:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 2112B8D0001 for ; Thu, 6 Jul 2023 05:24:32 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id E7A94140537 for ; Thu, 6 Jul 2023 09:24:31 +0000 (UTC) X-FDA: 80980651542.26.7C2D230 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf19.hostedemail.com (Postfix) with ESMTP id 1A1851A0006 for ; Thu, 6 Jul 2023 09:24:27 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=none; spf=pass (imf19.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688635469; 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=QxW3HS3nIDz3gCCy3NuWXLoNRzHTHMYaB0JYQNFu0Xc=; b=4EOhLhAe7X6ZkK6iu7vDOn7lIqoXyUFCuQ9YBycjSnPw9lCbEZge7eJ/mpqJiGWZviTD5s ggocLWokky+vrBdEQ7Y+d9Yvqv2X5yh8EvHFgW7JgJH5dhh7COVsScphaA1jlTzEGaN6Jv JF+nWr7YUfPTd1wtn4QEzYkd8GlaK14= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688635469; a=rsa-sha256; cv=none; b=mWLdQ3R4m+k2Dd+6ZklI6uqXskpip3cKAd6sRRLNWRygGkBWU/vORj5Z7JbWdQjCtorogQ wfqM98M47zf0+sPzoMNcrr2+q9/bFIW3q2/+K+H8V0ozYFvJjcpXe3CanxDuM3A3hnrihQ Rq9gMgU+PvSGgyIyLx2JKvqcy4zMTLk= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=none; spf=pass (imf19.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QxWH56WbqzMpds; Thu, 6 Jul 2023 17:21:05 +0800 (CST) Received: from huawei.com (10.174.151.185) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 6 Jul 2023 17:24:19 +0800 From: Miaohe Lin To: CC: , , Subject: [PATCH] mm: remove obsolete comment above struct per_cpu_pages Date: Thu, 6 Jul 2023 17:24:41 +0800 Message-ID: <20230706092441.1574950-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 1A1851A0006 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: mjgr7h1of9mtp9tt56e4yteeh87jeenb X-HE-Tag: 1688635467-352845 X-HE-Meta: U2FsdGVkX1/ckOrzTa0iUvDFi2BC4oCbpkgr5tVueHvFmX0HntP1Ar0VSd4G8kJHSBzL9Qoe0QAi57TIu2A6RVgU7aiJ/Bx0MJoXos9DOH2ugHTB/RmBxb4mu7GBArCGi8PF9WWIzgu8lkOt2iohoKHmaCdvs/+LQ48NurNwXBOKB9Tqe6zu1tumhlkFkrzDvE5Z9DasK8Wk67e3MSPDfJ5bBRoi8WmEeO1nn/Qjt+5H1TRUGclY4o1sR6qgQx9OHfCRGKjqExeAjR1RQObhYtpkizlcGzAgXD3QQeeOIL/m6DzXRYv5j7WOQ6kTDr4X9RG0S5LdJjCDFLA+9nNg0e9AazAA9w5aeWEVt/BhyL4dM30OTxx3vhZXoL+2Go+HcPhPHO0Az0ITx0vDrzKmJNb0zdILo9g8Lr60tJgKWORwqbOtm9S2fZqvEl4tL4OSOuSTkhDYrB5w6yNL4A2xCHeMUZGYYZQZyjDHj8DCZgv/EACqg2pP6IdKI7D6PeZOT8yJeUPrPofvA8nD1u/hUIRcQeVcxJ9crBSJTeoM94wXatxRjGL8DT0/Atv3KArDb4RUwfl/I5nLRdHffTPeRhpaWRXMtrL77R9nirHgSmhnGf6M6C0SabdaMcpnn7tw8zGBcWi87FRDRDHekIAX6aFd1Y+vYCkPfDTdDERQIudo56f/PsgodR9xnXWwHxCFzXD+pBmkcwlhX8Dh7TwfsafHxp8mLUAO+/AxodB72BwGDsO5IkBna0Xds1k0gJYYgRe+LBYSZLZSrji3PtLuqhqyiOuqa2Pl3KVEno6Dq64hxQEtIkrTZH9UGimUhiGiJUDmfnK5icTIr73+LBMuRZ2i1gYO+eBT3EveVl3CDxlNImfEtCcvNU4QkokZ2Y5KLnZXvKUNUCVEfdWh5AmL69DM8D56yBy+L3l4/xqTTrPfmL5SlNhr46nAhX6Ad3t1iZoVGhv9/PbuEPjX3fd XT67LzIn YyZEdDEjwZA9NOSUITSiJ+du6d4nnPAL1Bc9ZxFipuffk7PrC/cAkYoDvq/bC2maIN94e3bsx319eq/4MH/gfE0P8Tsa8A1zOkESiLhfPVYuw//p5rW/DTKFfaAqUMlD+NGuFZX0Z72fAtq/SgRkZvA7G4EhRpv1v9huEgJLo4qbc/dWJ0YAdFT+atOIVCozPBurk 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: Since commit 01b44456a7aa ("mm/page_alloc: replace local_lock with normal spinlock"), per_cpu_pages is protected by normal spinlock. Remove the obsolete comment as it's not that helpful. Signed-off-by: Miaohe Lin --- include/linux/mmzone.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 5e50b78d58ea..4106fbc5b4b3 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -676,7 +676,6 @@ enum zone_watermarks { #define high_wmark_pages(z) (z->_watermark[WMARK_HIGH] + z->watermark_boost) #define wmark_pages(z, i) (z->_watermark[i] + z->watermark_boost) -/* Fields and list protected by pagesets local_lock in page_alloc.c */ struct per_cpu_pages { spinlock_t lock; /* Protects lists field */ int count; /* number of pages in the list */