From patchwork Wed May 1 17:26:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shakeel Butt X-Patchwork-Id: 13651043 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 32C69C4345F for ; Wed, 1 May 2024 17:26:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F00156B009B; Wed, 1 May 2024 13:26:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E88C56B009D; Wed, 1 May 2024 13:26:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D0DD96B009B; Wed, 1 May 2024 13:26:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id B05D16B009B for ; Wed, 1 May 2024 13:26:46 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 640D040945 for ; Wed, 1 May 2024 17:26:46 +0000 (UTC) X-FDA: 82070506812.11.A38BA52 Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) by imf29.hostedemail.com (Postfix) with ESMTP id D409612001B for ; Wed, 1 May 2024 17:26:43 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=RYJMprjH; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf29.hostedemail.com: domain of shakeel.butt@linux.dev designates 91.218.175.173 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=1714584404; 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=ememgP1JocqN9S+WLAK1U+7C9ihTSU1uk5FHGEEDYr4=; b=Oam2OLKKx07xdCpPH9bhe9zPSvgnYEj+boy7wlqMPWAq8qXW5fsp/2Xq7kaMk7JBrUbsxL PXYu/k0EEwA8uFLZ9BO5hxLa00/NJnshGcXl4PdgGaGX/z5efCqbpmMjhXo4kKee6jFrK1 Qu2ENeatQaUhb65KTqUgV0vTCD/Q7mY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714584404; a=rsa-sha256; cv=none; b=XI7iSINXexwdlvESQJlDOgEgYVtZqAt2t/ktd/xydcz/O4xkwfG8C3Sf1RiAjuZI3K7EHi YzMk8G/52ZSPFUhBS4JEmrnjLqwCbw3xamtZGo9uF2XKV/WfWWfcjVgt2Z9yfe3PrAzUdg OUnGxZzAx8uP0UbQwPcRQjMO6BY1/Zc= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=RYJMprjH; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf29.hostedemail.com: domain of shakeel.butt@linux.dev designates 91.218.175.173 as permitted sender) smtp.mailfrom=shakeel.butt@linux.dev 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=1714584402; 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=ememgP1JocqN9S+WLAK1U+7C9ihTSU1uk5FHGEEDYr4=; b=RYJMprjHMDS8e79Oq3QGMPyZEM9cde+P1t4xIvdp2lQdMigU28nY2+mJ+fRYkJXbRFOr7Z qX8L+scG0lHGdqMKsjfVCgN7bbJJe3LmLnlAZ+XUaTSy9gzBjchqIpCV85Os45LMjdQMMP ARQLfXyvt3IftYfCXIXe7crcs2JLri4= 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 v4 5/8] memcg: cleanup __mod_memcg_lruvec_state Date: Wed, 1 May 2024 10:26:14 -0700 Message-ID: <20240501172617.678560-6-shakeel.butt@linux.dev> In-Reply-To: <20240501172617.678560-1-shakeel.butt@linux.dev> References: <20240501172617.678560-1-shakeel.butt@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: D409612001B X-Stat-Signature: mhjaqmczexhku44ket6s6z9k8benb9a9 X-Rspam-User: X-HE-Tag: 1714584403-127564 X-HE-Meta: U2FsdGVkX18m68keBu9Hh/LEX8bN3/uxlRk8+OGd5H9WfNkIDkNKV1WHZ8sK69BCfv2Ar0BvqPWti3xOi4R6T99inbgdKHIH1W/bGDAuNc+Sd1bdmbdXqk+RIBFAYXfNVWWUHUcc7HUBASL57VT6sIZw3azd5QUxlsgMiZ/nr/xlMBHV5vydfN42zhrhmUM9JHurDduu6BTMJa5ud7LzFBWpVlbc6Fedm5smKWS1PsAGJ/FOhWjrJ/FMKmWvoeroq52FIiZIGG+rIK24UXUz//JNxrELQ3PInuXeZ6/iEAv3sTymlV0zbRxvSKmzYpuOjus8/llxdmlN+Iui7h7FYYRdeoqEgjZ4a9FGrUE1zJoCVqpkziSUe/q5iDp86BX3XWjuyRoC//4g0MCv3UjfVT04suCM3JZAmHmMU2bf/ir+8ZdotnuKY1IJz41zvHlbWe6kP7ZW9T1V9mVSgDbsDIUBqEsT7UlxIRNcimdm2KEIfd8W80wJY2MQZmpRELLAtANGOGerRlEv7aFMnxFB9WrZ2qnM8Dg19j33a5GgyZVDKUY+4Ka7Hk2MuuJx4uS+tLH6tyTqRjugSDnxWkA3SkYAvPVI5rnrI098aFchitbIk4ahjKv/pqj7C91UzVSJABzypMUhf5rUl1SoJ3x0wVQO3iwpk6LshIZUA72fIhH51pkNqRzgqil4XLogY5yxHLQVVOQpxwtbNUfJHLu0CBrraFq3tp0AB/kcBM7TvGHidVs3DZlX1zQriQnPhoNng/nz1SlArlfiKctYmhQaMfNxdYKVKl2PJC8hUbPz5OR2/kvxA86PvjMlSAhuw5J5B24fXxnH5FnzgSMxbL8y4Ed2nD/7sY1q86HFeDPh1yF68jrH9vzZPLc2QFP8LGzM1ncOQ/DrWn4= 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 v3: - N/A mm/memcontrol.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index f3b6be5a0605..a78cf00dd537 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1010,8 +1010,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;