Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1494185lqt; Sat, 20 Apr 2024 19:12:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVq+Zxxa79NWShSekLIR3bBTQWAfbgs1uOPF1i4BbP5/bzpXVv/pMHs0B2YhgQKHwq8YZQw6CG6AH+OJv+KpUOk1soBLRDCYTJhlML+Tw== X-Google-Smtp-Source: AGHT+IG6MXJOrlIFMw5UNVWwJPsGd/pSfunLc0y2oxMnpckqgmL/3xrjTRs6T1LOmVl4Ig6VgGR/ X-Received: by 2002:a05:6214:ce:b0:6a0:58f0:3743 with SMTP id f14-20020a05621400ce00b006a058f03743mr6280549qvs.51.1713665546371; Sat, 20 Apr 2024 19:12:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713665546; cv=pass; d=google.com; s=arc-20160816; b=Ab+3pvQ8bbzmb3I0z/EE26cZS9YN0xCvoW7PssbrkEwMgB14VWfJRAin9iNDDiHzOj m3RaXfOG6zIE0ymfLvDwjDThk/XTUp0TptaCD3MzNfiehfOYzjlFFdyf3VpAhDZv2EEb 6O5MK9sxRNEE+xs8w2F4be2zhbO1zKPw0wWGFE1pRSefH+K93CiP8Q+zSE8zBgX+gCor apWhJVwmhQUHOr5S8QOkC7e2XrL9n7u6Rgdu5Pj6KPl8ChAFe/HTC+fDP73d/cPD2+TR DbwiL5+kAjMZwkVBR/gWIR0E35SYOAdp0Sl3oPfvucTrJ89sdMjT/eWhDRvCoZYRWe4F kdDw== 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=2SvaurfvCUkWptX5D26JWd2U4+u08ySTYwZw/YzCXSg=; fh=qvultuXR/ZDOLvM9c2ENzSX3EUfOEvhRqdGaAN+OntY=; b=XH2mcxm1dloQmXljD90NRzlfscg/n/2bmOcWUgDsivp6HPJb6YOXr0dPLZVpGWVZnR ZISDR8wbO5VLoAqxXkueICAd1pAGYTxOMiRWvblc/rST9UNMfFRR74eGxvioJA9ZEJ2p yUckTUWDLMrydu7grmDKcyX4SFvtsgDI9Fpfp8tPV+WAvwGo+evfV0G6yGvoM0ILGRdL 58b3J8G0IlFxajrfWLhjw6N7dNVuk2nBSVdrVnz0vDtwyHa7foe4BmcVE2unmC5f7afE YvaqjP98Jv6erX/ZQSnq6ehPIBDkoYIW4uu85zAJGD6WTA8c1+Lt6yIFGa5edu9Jb5sk HMjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Hj/kS96J"; 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-152436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152436-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 8-20020a05621420c800b0069b1db86f7asi4723232qve.476.2024.04.20.19.12.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 19:12:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Hj/kS96J"; 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-152436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152436-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1C9D01C2086A for ; Sun, 21 Apr 2024 02:12:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 183144C6C; Sun, 21 Apr 2024 02:12:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Hj/kS96J" Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (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 D1E771843 for ; Sun, 21 Apr 2024 02:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713665540; cv=none; b=fv+RrtKqmUdFmlj02EuWUb5zDrX+Qa7sugpk18NNOmfnud5krQ7ygIB2Aql7P5CPEHO27RlZLAz88Yy4UtTubKyFE/2+gWyIDjSgtPs+GEkONGmBtjqbbpwQjLTcg8cQOLoQHB6pj+IxCgcsaWUA4TP1gAJUe9AEHCwTpQOeQC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713665540; c=relaxed/simple; bh=2SvaurfvCUkWptX5D26JWd2U4+u08ySTYwZw/YzCXSg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NEWyC6QQ+QuxNit+5cePVW9DirORcBulegh21I26l8TJ9v9ZXyTU7+L3bvKO0ZhWyldCCVbLqHwwmQQyvNGpSNfweso2Bv8EgkBS994EJ7KmlBX71jh9aNVHDRwjoLj0uHcO65nB1qvo9c9rHZG5cohgzKH8TLgicgLshleqno4= 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=Hj/kS96J; arc=none smtp.client-ip=209.85.219.172 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-f172.google.com with SMTP id 3f1490d57ef6-de45e596a05so3642634276.1 for ; Sat, 20 Apr 2024 19:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713665538; x=1714270338; 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=2SvaurfvCUkWptX5D26JWd2U4+u08ySTYwZw/YzCXSg=; b=Hj/kS96J7gnLM5G51md9YukUPDaIKug5Jx4hTtVepEK3intA+14zGLNHtk3fBv1hnN EGiseoGHoWnTRlfp5eSefcQhrjWS3cby0/LYdA7KTRCdonSoIMuVbbNEqVwwcYcm2+VH Tni1rJl/TBSNlAmOLPVc+P1+YVWkuTgx8m0uTH6wOxu273dHlDLJVYoWuFfadaAK9QQz JqQX8tfJBEr7XCPirHG2+YQSMZLDMgzs9wWo5LBrHimT4aoJpNgNyLAol1ONp+rR0eV5 zZNjS+B9p2nkWSVlmKQe//GubuYzE8D493rzqAC8ARgAGn8HqUWGn1+pLxyIgoXIl59d d+3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713665538; x=1714270338; 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=2SvaurfvCUkWptX5D26JWd2U4+u08ySTYwZw/YzCXSg=; b=VWXZj9g6wWec9S29ItNJy06ajzV/qbc3d3wW7NE7WJjAYCn0a5xGb9vvvkxLIE4cAK e3B8UBkx/eLLI75pUek5JkijP7FUknA22BlEMQC/PlQFXO2qrjvft2LL6FjqmAO2ke5u uSIxrRSxP/7N0MI/qfjdY/kR3uQvafUmKrIczhrSP0BNBced+QwivokNQf8pEb5nUH0l TdKmbguMQBr1658OG8P3XcL08+LhdYoEuTDD8OGFUIrt+3w/hyKCLun1vcKORcEb67Jk jGyuFo/lfv5O3jpq03Hrz06ve+NU7L8bzmMTKhJubPj27467hOFWINOg7B1z0T6gu6Fi u92A== X-Forwarded-Encrypted: i=1; AJvYcCWmLVyrZN48rLHrCLIfkZiEoIO9OtmnIVqQLh8oYJ4MRZxJlWOjWR5qIKhmLcm81baQ0BdVBSuO0/DRdGhNjii0cg7JH/1GkWTjZLK0 X-Gm-Message-State: AOJu0YxfgqKf3SkJHi0VbocXOpaOBAOoqjtT3uvSLWq9jLua6M/F3YgU wIxxfIwAegr/2k3vv8HF2nArWcflH2WNvm/Ikx1AqvYjgcf9fmTFQRBFfKXik/wYoXdRYuEhPwz lp4Mnu0AbQl9mbGM6YP2fjVvvsHXrTG+3HYsX X-Received: by 2002:a05:690c:6c0c:b0:615:c92:d24f with SMTP id ir12-20020a05690c6c0c00b006150c92d24fmr7028962ywb.15.1713665537650; Sat, 20 Apr 2024 19:12:17 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240420232505.2768428-1-shakeel.butt@linux.dev> In-Reply-To: <20240420232505.2768428-1-shakeel.butt@linux.dev> From: "T.J. Mercier" Date: Sat, 20 Apr 2024 19:12:05 -0700 Message-ID: Subject: Re: [PATCH v2] memcg: simple cleanup of stats update functions To: Shakeel Butt Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Apr 20, 2024 at 4:25=E2=80=AFPM Shakeel Butt wrote: > > mod_memcg_lruvec_state() is never called from outside of memcontrol.c > and with always irq disabled. So, replace it with the irq disabled > version and add an assert that irq is disabled in the caller. > > Similarly mod_objcg_state() is not called from outside of memcontrol.c, > so simply make it static and change it's name to __mod_objcg_state(). > > Signed-off-by: Shakeel Butt > Acked-by: Johannes Weiner Reviewed-by: T.J. Mercier