Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp147708lqa; Fri, 26 Apr 2024 18:24:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5L4ZFyL0Ah1BNVD6653+jfqgXMSWOVx2ryfUjatV/iqJXL7SLo4kcEtAtygAFDcNgPJWhM84FY7d93qjj5gVdm7pYJsnZ5I0kVCf47g== X-Google-Smtp-Source: AGHT+IGmmxe64elsbBwfm8cvFLfV9TXXOvG/k82nPOWBHHS7v6mh1mTu67SYCrA1FD5FyXPZP7Lq X-Received: by 2002:a05:6870:b4a6:b0:233:1d97:40a0 with SMTP id y38-20020a056870b4a600b002331d9740a0mr4995291oap.24.1714181076848; Fri, 26 Apr 2024 18:24:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714181076; cv=pass; d=google.com; s=arc-20160816; b=plWuKyalTow9Ojq01wFJ/sXaamIdzh13a1cRryC253EgHmJG1DLtjjVUhqz33HCG0F GkEkBUljywPPIsSynANc5YASv/Sh+SxQAeY0EPBEI5mOIk8RTAjHDjdnG4Adl7TZxsiF FecJaWWlV32/BWfu5kP6Q3m592Qylmv9S5RvbjSf6I2pXM9L+XmsjWjg10xs4HksbpkM AgXoiE1sx9WiJj83H4WPKHDyYDB2Ikou2OW8Es4S2tZOR6D2mlrIe2kTMEAVAxctimuD gelKi6F7ld7ne55hYHV7FGzAoPcRlGFrWotiQWQ/1LSMNfgdT6wEq72ZVtanVguv2nOO QUCw== 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=QPOrYGhIxzwlhZ4E7M894ekrxNFr3zBjHzoW3zvscoY=; fh=oDlPJsXXmQU/CBtw4KqCr3tu3+2e76C58XmKNPRvIbc=; b=c0G5sFYMi0aAfgdHQpZQ3zfGbRjvKDo7M706HZk2bc90pQEdieKgiuDwzLF2nYaDd1 Ehraf+JHpr/N54pQXzOHmULsMztsTwWLv8S7Ocdk9yXJa35HqHjUW1ZpJIRQTlQ9Gn7r RNoNSaC0Nbx8v3g40I2A+iKCt+x1vwVAnQZKafNrpvJ0u/T+2F42MGtf9E2rthA90zS+ oLdVeDUEHxBHvsuVojYLY4WkcfZfnkmysGYViHoWmm5+odUVYKjl2LSVGyroN4M93aQV TMrKDR/NbgTCkJLT2aemXrZtZqkvWXfuGHzr9Ko2lsZgn9aPaT0oBGrMAH0L3T9qIiYq UX9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=C8T9ZS3C; 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-160843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160843-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 m20-20020a638c14000000b005f8071cbc1dsi13790732pgd.176.2024.04.26.18.24.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 18:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160843-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=C8T9ZS3C; 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-160843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160843-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 74211282ED2 for ; Sat, 27 Apr 2024 01:24:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1F0433CC4; Sat, 27 Apr 2024 01:24:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="C8T9ZS3C" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 5C3D363A9 for ; Sat, 27 Apr 2024 01:24:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714181069; cv=none; b=qnwLAZdBMNm11A11rKEYDFa5SkDUF8hdFPnx5mkeTpI/5GENTN3FVAYU+wtaeuhrey1o07EO99uBIsHS+0JbU56WViZh92hQWolQWA+qMWwYax4vrotvH33bs741i9tT7OI/wzSgPT1tBtMSJYv/KXTE+qU4wCyFkdCDq21Ny04= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714181069; c=relaxed/simple; bh=QPOrYGhIxzwlhZ4E7M894ekrxNFr3zBjHzoW3zvscoY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=h+ZQxHW8z2+OUGUQePRPEb0HQKuu5DVfkToxVIH+P/TBWPKuHVecQCjPbh/Z/pY84/CpBTmMKSPHYIleK6Rgcqm5zRzxjT5GRI79yqU6GRRkEvcB6AdfCjMsipXBRPINsiEYn3YS+tCVHabkwYS+cSKrHKREuuEuk6uXI5LDkAE= 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=C8T9ZS3C; arc=none smtp.client-ip=209.85.218.50 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-ej1-f50.google.com with SMTP id a640c23a62f3a-a55bf737cecso331444166b.0 for ; Fri, 26 Apr 2024 18:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714181067; x=1714785867; 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=QPOrYGhIxzwlhZ4E7M894ekrxNFr3zBjHzoW3zvscoY=; b=C8T9ZS3Ct/Hd4xlQZCWUeD7F8vfukZs/O+31jJl+3WY66d3BpI0N+1roqnqYoPtFHG oYz/ViScrl+U5SqBVpZjr7SKgnYRrL254tVuw9cJUYnBCIYO7ikWwP7Cby8kmXoLxp7F 320lgec1a2SNfQA6BWacLWhaKyAxcsCPMBeEj+opiQBEKy3aIALE8nEykWTzwchAH+KU 7LWfV5+ZB416sDxaqoqD2w+KKPudHWxaFpnPUkZtIASu19GZJmCka39Dbo5mfkDQ8cuk Olo/nsuzu7tSiMoTiNGTD2Bj5i3Fp0U+6K6Iu8WWesfaSLE2UlzDNm9HhODkb752FFEQ Qftw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714181067; x=1714785867; 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=QPOrYGhIxzwlhZ4E7M894ekrxNFr3zBjHzoW3zvscoY=; b=PM1QqC5t1EiWYixZinTOTyxd37tPoJH7Ihl9zR4yOklboCrEAxQTZ8yq3igftP5zGF m1M+lp6y+k7zk9+CNMl4EvulJheE2GLXxmqwrIMY6+DGfOg+FzTtsjtooJoPK4DFnEaX BWe/qWYCIwvQLX7HOuFcDgGRZxGE9gjFYH5EVc1YM5xlmR0uic3AXHS9FhcGcsuQwxRU hTTGXRe1/O74jyBy+RATsNDGlKcb2qkQ9wj7UzGifAR4px30+CE0iT7Sp+09eORIwRX3 ovVwBeKga7eHuVOYY9RGiIpaT4goJxD6+VDGNcrgoylxm7m7LWswh0v95WdTOW2j+0iI v5YQ== X-Forwarded-Encrypted: i=1; AJvYcCVK02Bmi0Ai4nrYzP+gXzpxpp5DLw0/OOsSi05mBNjJVN0uAvMgeZsPHIgGOQeU1+K/C4KTzCwTcT7ytwJVFXQjcLVBYVhNRHG9etpL X-Gm-Message-State: AOJu0Yx658i9lXPhjv5RgXvMWaMDYzJ0cH6ndY+fTx1yDGrIZk3wy9kB aCF2mdDIpcCH2FAX4SZ8hCi3RKLBgwBnOJ2ffPHrieOmYWZ5H7jKIODKJgvEwsSItzt8ID9B1BG n+JfAGOA8VSVz813koVJLXUOqmoZXFVFE6r9K X-Received: by 2002:a17:906:ff52:b0:a58:8864:b3e9 with SMTP id zo18-20020a170906ff5200b00a588864b3e9mr2896185ejb.30.1714181066484; Fri, 26 Apr 2024 18:24:26 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240427003733.3898961-1-shakeel.butt@linux.dev> <20240427003733.3898961-3-shakeel.butt@linux.dev> In-Reply-To: <20240427003733.3898961-3-shakeel.butt@linux.dev> From: Yosry Ahmed Date: Fri, 26 Apr 2024 18:23:50 -0700 Message-ID: Subject: Re: [PATCH v2 2/7] memcg: dynamically allocate lruvec_stats 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 Fri, Apr 26, 2024 at 5:37=E2=80=AFPM Shakeel Butt wrote: > > To decouple the dependency of lruvec_stats on NR_VM_NODE_STAT_ITEMS, we > need to dynamically allocate lruvec_stats in the mem_cgroup_per_node > structure. Also move the definition of lruvec_stats_percpu and > lruvec_stats and related functions to the memcontrol.c to facilitate > later patches. No functional changes in the patch. > > Signed-off-by: Shakeel Butt Reviewed-by: Yosry Ahmed