Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp132568lqa; Fri, 26 Apr 2024 17:39:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUV1ffYn70q07iDOEtQcKbK0mD65FP1vgPR/hE5p6Ri0YV5029kiQsg9S8L27AuQU/foze7I9s9ZqFdB64uEO5u43X55N2ag+I2I2IwaA== X-Google-Smtp-Source: AGHT+IHvZIJWSZn/vNqIjOpkLuvVzx6aUfHH7rGsFjg4lMT5XZ4UyzADLAPzaexztnfnLN9eeQgS X-Received: by 2002:a05:6300:808b:b0:1a9:84f6:dcb6 with SMTP id ap11-20020a056300808b00b001a984f6dcb6mr4307236pzc.57.1714178371770; Fri, 26 Apr 2024 17:39:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714178371; cv=pass; d=google.com; s=arc-20160816; b=P0zRElospyr15GLF202a4fZ4vrR6YOLyv/z2gUvKb4VCzxhaMYWJ8nI+Dp7iGnTJdR oc9bAcLKZOHE0MqrZ5SnT3H5EqAjuOx2tXcJRf9TrZJQIETbQ2LqfnyXOMGvqMg6uc2e sNssBldmRwW7aHPI+B/AY6TAVKM32rIjt8owYLc3NWM0voTOcafkLrIxaSUGDtpZCiYw OzBKISe4eQlFzQ4T9VGBOaxba6o/IhtT+ljQ6E6VZGhhIwfspII2ytVjjgxcpo3mgJSk 9Xpp7w2I8zXgLk85smNgqZ1h9gtM5nz4YInAaEsxexZynmx3IusevztBmUK1ZquaUshK c9+w== 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=StJiZmI3BplMAQI82xrhJ2SVU48fOC0iWz8HtDgUnJo=; fh=RT6qUd/cFk7mA1daRZyPKZ73SkJUv705B/3NiEK9oSU=; b=Bxkx3crqVtVxf0r5M2WL3/j3rW5W772vkusRiMFETECNBcjTu/1hW5qhpWlRQ42+WO PDNRkRxgd+e29QgxCdZZF8lg6UkuGp4YV1ZAR/UtPE6CNv9qNJBKg3yetp9aBYyHgZlP UaWy7QSMnAEAPY28RvHLR1Y4dlbV6wtfRxSXBMf7NMdaQ4U1LwVcUxXdMQihZDSEv257 LrBdOnrAX6sbCNApAJXVdGV/3Czfp8NHfg1htnqcGiRiaXiikkA5gicafG/9f9CGw1fF PORp+R/VgsYsAd8eo+iwl0Zr1YGqozebCc54cm6VXrYzF19B7+50q0RFuDP9aM3T3j8Z iR5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=b6gjrMhu; 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-160823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160823-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 s124-20020a625e82000000b006f085e53773si16043661pfb.344.2024.04.26.17.39.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 17:39:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160823-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=b6gjrMhu; 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-160823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160823-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 832BBB23684 for ; Sat, 27 Apr 2024 00:38:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 20EAB3BBFB; Sat, 27 Apr 2024 00:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="b6gjrMhu" Received: from out-170.mta1.migadu.com (out-170.mta1.migadu.com [95.215.58.170]) (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 C16563B1AE for ; Sat, 27 Apr 2024 00:37:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714178276; cv=none; b=fGf80MKbDTaul14YHiMUQB+/LurTIQt7F6b6UdBXKTIBClmocJKZTjtnF9brBLa6k4uJLBlYLuQ9czsOPqGK16m4dBICO9rIaD3AnRvQ8ioeha47CZeh/QJovFNVIXyWga30s+VN+zJcE4W5KejbursOMGYVFbMiHly1gVjijRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714178276; c=relaxed/simple; bh=2c11/UNucjhYuvQsF9rHuh1tnmfsKj/luR52vgQMaxk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NIz4cRaZLwOhR0LWmmCmY6lrB2cgGi60MKMaEft0UDVOHwrE1aO8vjKnCMPBdmhRKrXKPyI/gSurV/aIxth5hFWVr7zrvTRyb6IiFx88pQ7lImlZChObpWc+UB4h9SK+IhCMn3nHuPA2qW4cTtwLdGWNKB7j5G+rDaQT+WsrQAs= 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=b6gjrMhu; arc=none smtp.client-ip=95.215.58.170 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=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> 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 --- 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; -- 2.43.0