From patchwork Fri Sep 9 09:24:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12971371 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 5BF63ECAAD3 for ; Fri, 9 Sep 2022 09:25:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 841508D0002; Fri, 9 Sep 2022 05:25:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 72F1A94000B; Fri, 9 Sep 2022 05:25:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B6B794000C; Fri, 9 Sep 2022 05:25:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 0A1A8940007 for ; Fri, 9 Sep 2022 05:25:31 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D56BFC0B20 for ; Fri, 9 Sep 2022 09:25:30 +0000 (UTC) X-FDA: 79892014020.24.B836F50 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf26.hostedemail.com (Postfix) with ESMTP id 679761400A2 for ; Fri, 9 Sep 2022 09:25:30 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MP9V846HWz14QQr; Fri, 9 Sep 2022 17:21:36 +0800 (CST) Received: from huawei.com (10.175.124.27) 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.2375.24; Fri, 9 Sep 2022 17:25:27 +0800 From: Miaohe Lin To: CC: , , , , Subject: [PATCH 04/16] mm/page_alloc: remove obsolete comment in zone_statistics() Date: Fri, 9 Sep 2022 17:24:39 +0800 Message-ID: <20220909092451.24883-5-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220909092451.24883-1-linmiaohe@huawei.com> References: <20220909092451.24883-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662715530; a=rsa-sha256; cv=none; b=LSzJtoileRCjm1Yzc0YZbDXQKCyROFyV1VvTuXgcJ4Ccph+wXHggPX5nxeJlNIeHGvifyU GkZZelJa0rB9sxaNRLMEw/XNU/i7Iv99peGuB47F463OrunlF4l5osOXBH0ljh3bkJkx5S 57WDnRezfZBE1z2i1AhzL8vh3Gw3XuQ= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 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=1662715530; 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:in-reply-to:references:references; bh=oshO+yMqt/g8R+2/jeWt+yl3o/JlZM80U1ZWIqtQFpE=; b=sR9sx3t/JFoa0VVzHlE/lns5Lv2ijKNKVRvvZJVOAONg1VRyYwP4gIDzXkz6mb3LZH0ocq R5FndnVmTQU+XFt7MaGYilZtqwTVOK9MC7l9Z0XaUogMO3JDODRLkb8NwHHMmBdPyHZzQr U+9ZfTwOYFjFrrI4RbCLd+CvviVoBmI= X-Rspamd-Server: rspam03 X-Rspam-User: X-Stat-Signature: hn788mb3begp7o5n4wzity9h1qwyzp3c X-Rspamd-Queue-Id: 679761400A2 Authentication-Results: imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-HE-Tag: 1662715530-437273 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 43c95bcc51e4 ("mm/page_alloc: reduce duration that IRQs are disabled for VM counters"), zone_statistics() is not called with interrupts disabled. Update the corresponding comment. Signed-off-by: Miaohe Lin Acked-by: David Hildenbrand Reviewed-by: Anshuman Khandual Reviewed-by: Oscar Salvador --- mm/page_alloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 2deac2fe3372..c81f06d8a4f5 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3671,8 +3671,6 @@ void __putback_isolated_page(struct page *page, unsigned int order, int mt) /* * Update NUMA hit/miss statistics - * - * Must be called with interrupts disabled. */ static inline void zone_statistics(struct zone *preferred_zone, struct zone *z, long nr_account)