From patchwork Sat Apr 27 00:37:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shakeel Butt X-Patchwork-Id: 13645516 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 C5874C4345F for ; Sat, 27 Apr 2024 00:37:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A0D316B0098; Fri, 26 Apr 2024 20:37:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9A4F46B0099; Fri, 26 Apr 2024 20:37:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 86DA36B009A; Fri, 26 Apr 2024 20:37:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 652036B0098 for ; Fri, 26 Apr 2024 20:37:56 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 2734D806DB for ; Sat, 27 Apr 2024 00:37:56 +0000 (UTC) X-FDA: 82053449352.20.3ABEEF8 Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) by imf20.hostedemail.com (Postfix) with ESMTP id A35251C0011 for ; Sat, 27 Apr 2024 00:37:54 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=b6gjrMhu; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf20.hostedemail.com: domain of shakeel.butt@linux.dev designates 95.215.58.180 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=1714178274; 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=StJiZmI3BplMAQI82xrhJ2SVU48fOC0iWz8HtDgUnJo=; b=WYO9hL49MV8vAjl3+jC+06d1EAy5EEPTAG+ojWGaLYD5Vl5r8zLDO/lPljPbdIr2VwK99y mI+mpYH2g5JQmL1+CQK1MsgRieOOwDe75/UwXDosPMK3pSbaclEy/Eph/Rwji0/Lyt9OFX WDTsE91puAbB36dEzRcnEoo9sgVOxv0= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=b6gjrMhu; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf20.hostedemail.com: domain of shakeel.butt@linux.dev designates 95.215.58.180 as permitted sender) smtp.mailfrom=shakeel.butt@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714178274; a=rsa-sha256; cv=none; b=Z7RElAGr9cD+Q/c01rpL60qj2Si+evas71Zv4CwWouLNLiZhjw021Ja8qvvpEY3jpXfEmB dyqwo0S9WXXV4Af04K12hMabZrRbyOKAsP/rxjekPYXxsZjt/h/XyAUAC9s4u3CQ/jl6DQ hd5eI53jTXi0Uu1AbOZ0aBNfBGyjPGo= 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=1714178273; 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=StJiZmI3BplMAQI82xrhJ2SVU48fOC0iWz8HtDgUnJo=; b=b6gjrMhuur3+QzQZZhAjDMsktwDbCY5i5Y/S3EnI6cT4PrqrIopqb7fjdGAwV1+f85fJkj oXiUuqCSxo3ONQADEVCNbYBnGKPDW1uurVXpqggrM7xrGlwYB8WMKdS6/0/lRWwBF5Hmo5 wt+amLltg08cTAW21mxIRKMXJMRUjFc= From: Shakeel Butt To: Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/7] memcg: cleanup __mod_memcg_lruvec_state Date: Fri, 26 Apr 2024 17:37:30 -0700 Message-ID: <20240427003733.3898961-5-shakeel.butt@linux.dev> In-Reply-To: <20240427003733.3898961-1-shakeel.butt@linux.dev> References: <20240427003733.3898961-1-shakeel.butt@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Stat-Signature: r8uaiehu14dkdtwrwbpqm76zoybi5y5u X-Rspamd-Queue-Id: A35251C0011 X-Rspam-User: X-Rspamd-Server: rspam12 X-HE-Tag: 1714178274-758128 X-HE-Meta: U2FsdGVkX1+0Dk5Nue56rznXvDcQ7Sy61MkevuWzXKKFBlS+QF9pj1EV9Gw2DByXF9nHDWm7lmbtZ6rbQ0ZhXuCKpUjqwqOlgE63vH/GBkyXruaKDlmlAPjibcBb3DXLNMHgEtFDij7lCrElhvo8sbSnAsQ6h+4nWihf/2elQYXnVuUhMHZnPNqt7Od92bZfJQyviWeQL3UeSJnkwigxHeynFmOVkVVzmIC1Wf6FagxzjpIGJJsM+bSMvxzmAjiKG4VjHPTr6KlZNY1EwPnt9LcfT6B86AO4Uj+zLgC066zBYknMOEP9gCDNbhs2ZjY+pAIeQdzsqPgG75Dz6iOD8ptswu/kvgrKvS5FVru5doejIN4D4TmD+N8iZPiyWHMVEWKpEsePCUMy6pc1P0r4i5kyR8PE4sDDyObOkrNSYbYvcpBSU9TxB0XEljLgaLHYHEGsEJqLCMhb3e0cqzvpiw39HoPc1KA9MPdC+SvcojqYXaSfL7zl3PVyJj5oKXyuN6JoW8Zfu6tUOZDT0jnJHRcZ/U9cpt88kSP8WgUId6vEsLtFH8tssmG4pgKC+m/jPR/vfopisgJX2N4HQxzC8NuY7GkkkSQgSr1ZNUAdOiNx0qQJoa8fr4g7yjIOUQzSlYnZoAtiIRo58GESgTADgksqD6MQmhKo9ighx3V9gNzxw5U6s3BdD4+602oMIqp7rm6PJKEpVIrtKF08KZN74IdFIqCLgUCQniv42ppSPGTYH+WXtQO813SSiCtw8j6qNfx4NF65ITdrmKGr5R7Ua7r3FfNfxE4JVOjyaZ6X5w7vCpn13xHdxgXGzOqLW38MgJBXq950zZSwgOzUl4U4ZtfYsHV7p6HiythGirCoTGopxMxK6EoFwlvUvheT55yk 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 --- mm/memcontrol.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index c164bc9b8ed6..103e0e53e20a 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1009,8 +1009,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;