Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1816756lqa; Mon, 29 Apr 2024 23:07:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsMdUW0KVPFkWGH2BSIwuWrz9Z8n0iyGqSpV/0VRFW2BCTuNxaMdbsYmDYF3UTfIbCxN9L1WX0ZZ2xWdeFBsN5u46cgE9b6+V278KiWg== X-Google-Smtp-Source: AGHT+IE79nAqXJ501FB15eSZeIo3+gw3+93YywNuRnSw3IgGeLT7sVbeB7ZzO7H7KFqWAuFlyPDi X-Received: by 2002:a17:906:c188:b0:a58:bdfe:95a with SMTP id g8-20020a170906c18800b00a58bdfe095amr8422494ejz.26.1714457250482; Mon, 29 Apr 2024 23:07:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714457250; cv=pass; d=google.com; s=arc-20160816; b=oiZZEJ+010mrqI5iDjSpOK5ub0RFzYpDDgX4OKbbz1HsNa7J0Pg1aUrmCZhZF6lWPL UDc0JCP6ynK/nPFh+i83APMptp+GaCoInkyBlhlKPzkXcduqGnGGpQPL4XVYlMoE0x4f lxoNB1JhBPHJPXZOnfmsrA8hoqZWuHAKHd1Eg/JZyFI1hmHMghIl3tLKwbBF4bjVePKz zisunrBfzFpNRX23xSc6HV+KUbaZ0I63EIBdUU7gMv8R+d7ZYypRI8pvJmLIPDE9ufHJ 5esYIRpWzHqiUvoQRJqc+IH8c0Gvp9rcmbXhA1ov6Hq2a2vmwtU5HW0wS0rsk/q/mSkD MBnA== 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=BPVK+LGjMG4ohSIE1zDoj8EpOU3OQH41GwgZeY5ZUQE=; fh=wnfKuHOUY4Mz1NUoc5XDTD1KV85duf1XGuItoJ8zV0s=; b=qFJFjyKgnTLLzF/q09cid6fIzg9T5lJbnbNIDywPx9SWmxZtPdjp0wY2+APBeNdPs+ eLzsK9QEjRZ+rS4M4e9HTid+iJzaS7YeRHPjugMeVVB0qRGHr3NdaObtPaSHU0dYWmJt 2bCkGbE7+9uSTksQe/BGNKtJ+q4g4Yy8e+oCzcyTM+UsE3iMZcVvhPAZEyyw1Aqg7LzZ kaizdit+TAl0WFUwZ7gzbNj0lHnbHMYfqOd+O3d1lnTCbpA4d6F8OBgOWJpSBuBL6zZg GO6SnOmFLsYlU5Vq0qBa+wVlY5lBjJJwZr5oa+/e2/nB0r3sN6x4KOU9nLEiqsgZBh1p s4cA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="EfBe/UdG"; 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-163390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163390-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r10-20020a17090638ca00b00a55b3f2de6bsi10722667ejd.121.2024.04.29.23.07.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 23:07:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="EfBe/UdG"; 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-163390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163390-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 37C941F22A72 for ; Tue, 30 Apr 2024 06:07:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EAC8179BE; Tue, 30 Apr 2024 06:06:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="EfBe/UdG" Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) (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 321E72C853 for ; Tue, 30 Apr 2024 06:06:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714457200; cv=none; b=YP1yQ/u6OoDfEt6GuSPKoe+i7fPwyBnhhClvmbKjrFTxHaP+wZL5hUBZwNpgv3wMAUo3aYQhPm92C5wEqQ0fgFXg3hSN5qIyZgti/JnOOvdsB5gJ6roFTGswidhxiLesRNfgIvdzlLKgDGQ0A8//iT1qH7tPzCbNqfyv9QVFSYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714457200; c=relaxed/simple; bh=/iEtJbezM6wgT7YXBmc8I+XITwFptD75NotZe/FLwtk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RPd+axcRkbZPW8kmCz+u05UGKqihnpnlWVUtcft7DHwMKGb2L7kaFZ8dVK/5FhLssfaKQt8ElJakN89owWMKsKT/AvUp/YjCrPCMm+3vKugEV9b7zMgSMo7HYYumKeTXm7rKmQ9zcv03pe5xohhIjQQst54nUZ3L76jbkgWd49s= 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=EfBe/UdG; arc=none smtp.client-ip=95.215.58.181 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=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> 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 --- 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; -- 2.43.0