Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp622607lqm; Wed, 1 May 2024 10:28:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVP/uccjWlZKDh1F3UactnUcrVAQjkB1A2u+JeoOxpjXFdQvNbujSM/fhOhY4FYjpFN1QkkDZvtEz+8iFJBW/QAJOtWSpwcJQEmcpgfww== X-Google-Smtp-Source: AGHT+IEnf5S2AtmfB6b6fsTcCdxBe4uHoESLPe8ZZSOZTIp+FTMp/wsg+zXo3HbUTql6CeiahbPj X-Received: by 2002:a17:90b:3616:b0:2aa:d88d:d706 with SMTP id ml22-20020a17090b361600b002aad88dd706mr489581pjb.4.1714584524808; Wed, 01 May 2024 10:28:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714584524; cv=pass; d=google.com; s=arc-20160816; b=BMnmq0gT0de6FzbYvkmMy6nv2g7SXOykCJzK/za658Id2CidhuBk05prvWtbMbDCNI Pz1FHTU44zF+cp0fTsdGCWR1GI47msWxXFfYfmUnEKc8eEldJ051NZurlUNCaYOuysBK x+jkJVdPM71VqcYjO1BARW02t/12a88CzsLCHE86xeEjoM+24542ovx7cfZq984Q5whU UQhkvj6I/CJre6mf36KlcdTGFp8U4Z+xAVq51Lgjmk0lt9Dcb3w2G0+H7G46tOCvJ/+j q1Nx1N4Wlv7UDoujUgxks7ZL+gM83KHoKV9rS7Ik2N8UScKuVgyj+Y//PcL9N9EgII0L XTdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ememgP1JocqN9S+WLAK1U+7C9ihTSU1uk5FHGEEDYr4=; fh=wnfKuHOUY4Mz1NUoc5XDTD1KV85duf1XGuItoJ8zV0s=; b=oHcUS5Fdi3WYK/GgwJbaME7lCsXD6YXlt619wYmEgkDrVNuhamRhsVB4PnBl44OeoS dsftuttKtimtN2/OIb0zxBzb5PDh78Y/AmbiJvpcUGjsTIX/Y1O6bm0tPckEJZQBkcl9 tgQT9rXcc05lq8d9/b9su4Z+Rvo8oQEDcro3y9WtlVQDxTYkc/qH/UCugvY1wKSsm675 gpOLtNyRBquSixJx6KuNsjdX4YXKK287tlkGoTYGwuiEQoRAqYfcRAwURDH+nXyWRtLo uzekYcFPCi0/vL1c6/9+co5xBzRZf4So3KdJ7wG8uGS9ov0UvcRbmILpIR+SIyPeCzZQ 9yJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=RYJMprjH; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-165647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f18-20020a170902ce9200b001eb77576815si8230454plg.497.2024.05.01.10.28.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 10:28:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=RYJMprjH; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-165647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A1750B22E58 for ; Wed, 1 May 2024 17:27:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C067E12F5B2; Wed, 1 May 2024 17:26:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="RYJMprjH" Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D1441BC41 for ; Wed, 1 May 2024 17:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714584406; cv=none; b=I1s8ELj8gHrUFlwudN+w+90mC+nAPqwHeNXKTeWFma6i2bhDItj94Fu7PpUx/p0q93fj3WLBmcekee0VY8PWVNiI9DXQMrvc+Fj94tTzc9z/X1ysSX0+eb0bCM54mkg9tW7cBaFzlY2SnkffQVxQU67QRUTn5Nu86EEuV0fjqF4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714584406; c=relaxed/simple; bh=40GkjnETTSjxFn3c6A9q49jQkrsJd/kPMzZVbSANdRo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Nppm46FBmrLZnWukmGim6ypbl+qsDItnrJAWiBCnfx9Ej7sMBHs487Ifu/nc5QiKu2vEXnHpD6krvG47m1LGLJK8OkemK3qup1gZoDZiVjIiIJZn0xxgcgn2qaXdpSQAtnW96Tc22FEX8zgv+fpkpGnBDnjfMObLH8XrFQta4X0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=RYJMprjH; arc=none smtp.client-ip=91.218.175.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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; -- 2.43.0