Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2196370lqa; Tue, 30 Apr 2024 10:31:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqDF9wnEsRiwwQqkkFYnQ6zC5bTMAc5owt+FOu5P56xem3fx5bDkgYlnRGOSv+bjlLAWX4XsdL5nQyPH7c6+hyT4vuwrWMhHAfrGjMSQ== X-Google-Smtp-Source: AGHT+IG8wmS9tgNYwq2f5gY9g50WL/jzP+VmhpQ+wR2/2PwxWy4kxAVDctUfzWWnfewiFuUIbBJA X-Received: by 2002:a05:6358:52c9:b0:18d:9e17:455f with SMTP id z9-20020a05635852c900b0018d9e17455fmr39879rwz.12.1714498291968; Tue, 30 Apr 2024 10:31:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714498291; cv=pass; d=google.com; s=arc-20160816; b=fwEjTLg+b6xipPlOpb+h3ONO1FCN0BiZ1Srzt1lh4F+XyrECL/HUQsD7YDRDS7BSlQ m5vDTtyPUaiZGadCu9SWEKKEclj++Y+C4umTJZUnSMAI8P4Kka/+wniDYEdmQbYC5KKC ZekXNzBTUPebl/AtPPBtpHMeJn2E9y8JQQWGgAw5BYb6mTKEFp07b0oOsILPTIHJk2/I ohqkzBjQrgTfFhfqH0eW2pabJu/DEOi9RP1Kp/OXW6aBNw6bj2TgGbDTqLEHtFZyk6Qq fOJamHXTAudnqxYcIisI+A7kpiubo34CJ8+c/kvaRrbGjkem/eri6q2nmmoooRoa9gkI rypA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=6JwxAddIORoDjZb7vE3h0utwtl3KaibdVVn/7aWOhkk=; fh=NFWpZR8xxzb/57MjAaTATxVINlpbu3vM0Vy0iVsYRd4=; b=exyYyPBsL8kV1FkA3qo+yzUEVP+fJap+wrRieethT//giUNQ9tBDAP/ub4IOFVcUPC xpSjaf3jZa7sLIvZrada76bxCz5hqIZWM3OCns9/Xbf3c2whL8KkZPyTFc65as2usXQT P1LQCrXmaCU5pHft9xsZ5vtS97r13BtX5fib+Ue9zUexIxDJBf/xURvzIkew2dFZNzUv Z+8jCzO4wmA0oA8DHmRFJe+k2p6ipsp2RhZm4ylesHan5zD6pmffon9slXn9rwp40sWd LzM52EQC/7snatq9gspsuRhUJhgnTYUaWJJu35SdWYj5EZLra/iiL9tx94I75CDalw3U mX2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GiO893wX; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-164519-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164519-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s66-20020a635e45000000b00613cb0a9d59si4236045pgb.542.2024.04.30.10.31.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 10:31:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164519-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GiO893wX; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-164519-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164519-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 83D1A28302F for ; Tue, 30 Apr 2024 17:31:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49DC71802CE; Tue, 30 Apr 2024 17:31:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GiO893wX" Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1873817BB20 for ; Tue, 30 Apr 2024 17:31:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714498282; cv=none; b=Xa4ki2B5Yc3uS4/6uGxz6+i3igKdzJLC2YnRQrUbMlOHFU7J8k4FPzBC6rCuRftUxkQc/8EMfGLTCDC0nEugvL+ChZdoBqsFpIgr/qjZyhNZR8txUjW8N+f0cNk//wTw8EiGpN7UCupCptpc1sGd/Mz0mAirU6XXFVqXwa3cN7o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714498282; c=relaxed/simple; bh=qQKyT5QD+ByzejxspNegdQ7GnL9z6+nOWConQ9wVkS4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TJURlq7hUW1h0/6A/8WVUl2WHMl0j44ymCkkpdiapwCnIvP6tI1GVEVPl4ds38gvQP4NiStWl6Q5yPlkqUn8pPk5kwY4bqbyB9KVLxf8MQz9tzH0Rlbd4u9MhgKoYuOUSf70mAm1zpkmm6CFs2Eh2B/dOS3V9nHcsL7/ZITorgA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=GiO893wX; arc=none smtp.client-ip=209.85.219.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-de59daab3f3so5453989276.3 for ; Tue, 30 Apr 2024 10:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714498280; x=1715103080; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6JwxAddIORoDjZb7vE3h0utwtl3KaibdVVn/7aWOhkk=; b=GiO893wXFnZeq7XEKFst5y+s6IyFaAvp909oBOutSzj4XleDibFBzEp7AAFa4bWX77 l46NC3cK8tQqlElG3LeWGaRfSi+Bh93YtNC1GP9v1mTpda8o/SqvF8cy0s7CFej8r7TX KmpDLibm9jg/fI0B76LxYX0xS2QWH8EoeWMb/TTTfPQaSId7+RGHf5dvrrvaukj3PL0k 7ZFuUuU6F6jIasHo6P+PbRE0dFUU06p/dV4h4jjI/Crg7lTKHR8Vu8aVvhRvdRajMsuT Ph5qumVCxrCF2K8kvBsuwk/if/dxbAvrkA40URjVhdEXL5A139NQDpbhlx41NLt7ODCa M/rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714498280; x=1715103080; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6JwxAddIORoDjZb7vE3h0utwtl3KaibdVVn/7aWOhkk=; b=QlwZnpLSGc3Btkcl3BGEoR5dy4gs0xah6udMtH7/XYdFanAL4uLOrEJJfG7+oPDGQB C86VGB8F/Mi3wlL/C44vlEjeQxBJoOeDOxe3JAZbYa94GRbtvHNM8TlCSsdkQtWMUsm6 1XjThP+rmBHPRrSLeiKxl382sKRTW+4/qBFKEPVEC292Xwgtu62a7qWK5FRYbok5ZG6i gM8IMMGuQN2peaWXCdnY05aBxx8GTD7Ne/DUn3C8vbUCryz7FYDb67IuJw1lyT5H3Mi3 dn1fN11evFIrmPUyfqrk7UmchUrlULdbYjSwCFWqoZkObTjXbIsKbmF+TF2BAJQAuQh0 ghHg== X-Forwarded-Encrypted: i=1; AJvYcCWFzC7Z9gr2cf7EuaRA8F5AX1gWwsGYnpU9LkV2SwWB1ESuusONSV5MqT2eri2tR9fCx3jhMOdXDHTQVJu79cmts4mYL42XoaJ6I+vB X-Gm-Message-State: AOJu0YwzGCwJ75o6Kve8kcBeYdrCLA9TkNXTYZKnkJW+MnRbwpOarN2I Dzuu2Q1Opb2Kp3/z7SXYO4tkHcG+KuVY2lm5nhH8ZoP6hdLOYcxhIUOdhA3YLsva/R3nRXzjtKh dx22ipNT5n3oSU5XH0YKEBseKiNgObaPbt3Zp X-Received: by 2002:a05:6902:2491:b0:de6:d7f:2a37 with SMTP id ds17-20020a056902249100b00de60d7f2a37mr262373ybb.6.1714498279865; Tue, 30 Apr 2024 10:31:19 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240430060612.2171650-1-shakeel.butt@linux.dev> <20240430060612.2171650-6-shakeel.butt@linux.dev> In-Reply-To: <20240430060612.2171650-6-shakeel.butt@linux.dev> From: "T.J. Mercier" Date: Tue, 30 Apr 2024 10:31:07 -0700 Message-ID: Subject: Re: [PATCH v3 5/8] memcg: cleanup __mod_memcg_lruvec_state To: Shakeel Butt Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Yosry Ahmed , kernel-team@meta.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 29, 2024 at 11:06=E2=80=AFPM Shakeel Butt wrote: > > 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 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 >