From patchwork Tue Apr 30 06:06:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shakeel Butt X-Patchwork-Id: 13648291 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 B4170C4345F for ; Tue, 30 Apr 2024 06:06:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4D3666B009E; Tue, 30 Apr 2024 02:06:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 45C676B009F; Tue, 30 Apr 2024 02:06:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2AD166B00A0; Tue, 30 Apr 2024 02:06:42 -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 0A1696B009E for ; Tue, 30 Apr 2024 02:06:42 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id AB3F3A0BF9 for ; Tue, 30 Apr 2024 06:06:41 +0000 (UTC) X-FDA: 82065164202.10.B7EF6A6 Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) by imf19.hostedemail.com (Postfix) with ESMTP id 1965A1A000F for ; Tue, 30 Apr 2024 06:06:38 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b="EfBe/UdG"; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf19.hostedemail.com: domain of shakeel.butt@linux.dev designates 95.215.58.179 as permitted sender) smtp.mailfrom=shakeel.butt@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714457199; 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:in-reply-to:references:references:dkim-signature; bh=BPVK+LGjMG4ohSIE1zDoj8EpOU3OQH41GwgZeY5ZUQE=; b=B9jV8KnEnLmA1DCzm+OIWBWy2Xg7Em+REMj1lSqeEUZOcrhRzsoC8geV1dlOnhKXlMTPAF W7GVxHdaUU6fFKOCnYzGjxIm26ODnG3EZFliueuDLBxZJV1Pjpdut/Xqu619BEk3Wy4UBh n6YacvNAA0nKPK2PPDzRteBiVab8/gE= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b="EfBe/UdG"; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf19.hostedemail.com: domain of shakeel.butt@linux.dev designates 95.215.58.179 as permitted sender) smtp.mailfrom=shakeel.butt@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714457199; a=rsa-sha256; cv=none; b=pkAeLGiV4vSpB0ZiOqt9d7297b5YVDUtuTQglJBnDi53VQWRCEoybwGaj2f2c5Tnt3fq9D Dh52wSaZC3qJB4oBHLLxhxseRvbNT0WTwy65Jaanc24fEj5CtU37CQKHPnJ0rwgLvSwLf4 YvKE1+7u2ma1uyhKuLgHqXEaYOfF52U= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714457197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BPVK+LGjMG4ohSIE1zDoj8EpOU3OQH41GwgZeY5ZUQE=; b=EfBe/UdGoVlt2JhWhQf0xF720ZRjNkbnEaL968MBYRXAEfDgAk6LqFh+Rm50VUpYIDY/cs lTYQ4CduLYDHFatXqJEXF81zWjZVFefdLKzR+Vz4EU5vqzA/O01NyIDzRvas+cBk/Dt79Q tgleknm1AKtzrboCI0KYvo7eigvehRc= From: Shakeel Butt To: Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Yosry Ahmed , "T . J . Mercier" Cc: kernel-team@meta.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 5/8] memcg: cleanup __mod_memcg_lruvec_state Date: Mon, 29 Apr 2024 23:06:09 -0700 Message-ID: <20240430060612.2171650-6-shakeel.butt@linux.dev> In-Reply-To: <20240430060612.2171650-1-shakeel.butt@linux.dev> References: <20240430060612.2171650-1-shakeel.butt@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 1965A1A000F X-Stat-Signature: ufi3gna4hefkfuxs6zx8at6o7ij64es8 X-HE-Tag: 1714457198-92178 X-HE-Meta: U2FsdGVkX1/yY+VlrnKX9TL/ZJCZ9Xm9y+KTwhKqQ7V/5ULKsMNnxhsyEBa1M/IfrsgZbdKQwNQYzZ6+m5JruqmjgLZd8HlB6c437fFlIbfcvuLHnHuZOK42r6JQ0x8y6XRrWRh6paLDZt1qNkn+r3P150nqSQH+WvBiV4+Sgq1JDQYzceVSeEf0ahIlnC4OtPlf3pkvFjNiRYxcCRqdlbVQS9RssrEWhdUjwP+qOaq4COMRI6xtsqizaqBreQ3dW5saL2FuX1vGBS2b9KqUbOsWVP2VRoIYSYzH9yDcW6hxTE/77rnWb0Bph/HOibq7p6CBDKgiwfAucVN/BPNqFfwXoI9Durnx0xl8N0nY52TXvKmGmWwLOlShurJE+MTtzTgGwmARBcSFJ+wPRlgO9zLA8vyNET+OAvjlSIIxjtCRj5A/Dc67OPD4a3KMoUqdmO0BLVCH5y44I3h5KU403xC+tDANga9Jm+Tx1izMCjAG4B204+Xm+x/Y4b8muhC/Jv1sOddyFMqTHddlBvaHNbOk6e79qnC4l+hLTUI3BqXEWbcWEpDYW8vgwo4Ip+QxbFWscc4pO7CcjDFBjqKB6UHgJWw6p21wax8DtB/sQTuc7SjWPqm6mGXkO8wPIwTXgWLspz13RVuhyRptRI7apCzANr14ezHhg2ObeAj3L02aFbYKHfAa3qZwXBk0by4x40GCc9N4ZkgqIvxOUQMqNL+SmiETA03aeluSJE3u2pKv6a5FNeXoL9gNWb0mTSlVQrKLbYfhKp26OBqi8VMJJ4Ygef3746R0ge2Ct6Rw9eSjZ6/CPDK9zV8brF9aWm6kWCZZlskZB5ohtn9MkpRFL7nRoKv4LODAhYdVQKGc2TDzJ8PyksAPK7TxJNXCAYRb1wbx67rBOcH4J75sDEX10lKbEQEXZXZNbXpLmF4B4CKxlpPRqcGJexR70LXjeEQ8PJtJ5h3gL3s7tWJ1A2W b9/zEuyS EaK6N8YLaOL4pLHYNMcbosLbKsH8nGqbH5qKB9Osx6XNulwdUxgUeD/hyBSREEfcKt57EdQK8yJxoti2JIQeGxvnT7iH4wVFdMWWhMoCmQuIURpLYr0PMQYrrc/caiheJKazITNDsxMpq7wMeec4BqmT1Cw== 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: List-Subscribe: List-Unsubscribe: There are no memcg specific stats for NR_SHMEM_PMDMAPPED and NR_FILE_PMDMAPPED. Let's remove them. Signed-off-by: Shakeel Butt Reviewed-by: Yosry Ahmed Reviewed-by: Roman Gushchin Reviewed-by: T.J. Mercier --- Changes since v2: - N/A mm/memcontrol.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index f424c5b2ba9b..df94abc0088f 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1008,8 +1008,6 @@ static void __mod_memcg_lruvec_state(struct lruvec *lruvec, case NR_ANON_MAPPED: case NR_FILE_MAPPED: case NR_ANON_THPS: - case NR_SHMEM_PMDMAPPED: - case NR_FILE_PMDMAPPED: if (WARN_ON_ONCE(!in_task())) pr_warn("stat item index: %d\n", idx); break;