Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp788147lqm; Wed, 1 May 2024 16:20:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0QUTQjl4FJPsFNyUozJ5MiduIcBAEsxql0dcIj3Su/YBDC/2m2eCFTtQssRoK5EKxsRw5wwvUVZit/wekGyzP5nDnRTcstq6Z79o+2Q== X-Google-Smtp-Source: AGHT+IFKgpJT2pUqFF1w02cLm7xnLmY60/MlfIMDlZx3oLa2iMUI/2zTtbwkFdQ21MAwbNEGyvIM X-Received: by 2002:a17:902:ecc4:b0:1dc:3d5:bdcc with SMTP id a4-20020a170902ecc400b001dc03d5bdccmr4464549plh.42.1714605607059; Wed, 01 May 2024 16:20:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714605607; cv=pass; d=google.com; s=arc-20160816; b=F/QtUinhZd5M29OSrZeS6VNUJ1QbqfpnwPlw0R9WsXyv4Ln3U+zfbsbKD/yGYlHUrT IRwNSR6QkTUVMzqieZbqVH+Rh7uiRjtQo04zYgpWVRW0+uCwWqGFgt7b/deU+HvEf54X N602MaiZfT2f3fGSAO0by97x7JdBSftG5F3OgFkn3xjxcAJDJGQujiGg/7zUVqSIQnQl oDUyJ7zPhr6XNKJbAiOB/juV1vmKeneYjGXBkXr0UU4s3S0AcMHvuAg+kVoIGfVtb26L xrbt9idKKeAVAqZXnj5M7ISawZwzhjp1/6OSMXe2gOsBmnbonykwgq+FhYQudkBUiWRC 3yVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=gB5I0eMNfCBUTfZ23aoOcIFer0EoKZ8W81G5ow3IHF4=; fh=eRiufWnjPA3EhuPXgfdkrXSOa7zf1EnYInj/GSYzabg=; b=TRI2sWoFqkL5qzfWHDIika5fbMtDpxWV30i+dTvFThX6G9fD3e4zYLhxJMhDAPOEbK J91OLLeK6rf9Vu48MMO4mf/xOwxhB1CyZIEsyqvu3WbMclZ+k29sOTN+XtnsMhgKOhY3 7KxICGWhWefBhtKz041ZhF5zT77HebW9oet860pqyOQ6mEPftHC28qenAXcdkV+oa3NP yVpY27V6QOt9uVnOM7GqKz8DgUW9/1XM3PhmxCeVqQNq7u79wz2RFvReuHDB3IF21bzS 3WrZ4KlnDRscsCVgbecyAX33FkxappnB5NjGfNomn/l1v06nbhxhAJPo+L82yVZqCcQU M7Rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Ol2Ov+xb; 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-165834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l13-20020a170903120d00b001e6401bc084si24955296plh.568.2024.05.01.16.20.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 16:20:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165834-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=@linux.dev header.s=key1 header.b=Ol2Ov+xb; 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-165834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165834-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E66A2281F0F for ; Wed, 1 May 2024 23:20:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38D0C168AF4; Wed, 1 May 2024 23:20:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Ol2Ov+xb" Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (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 E883A17C6B for ; Wed, 1 May 2024 23:19:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714605599; cv=none; b=UXKD1C7RP8AtIydXH45B+FxG2TEzVDzPy/a6GjweAqhQB8N7EGyF/eMSG/Tnh/6rYsoS/o45cnS6rtAzmX8oCdDmZ2qcRZNrYbu3wpNZedHstdMN8mU2LGSt5oFQWTMgw0reHAyFZ925utCFlCN/08JjEYjlHCVMWPZ7+veEQJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714605599; c=relaxed/simple; bh=y5Bi4fdvi84yqwBZVRod77w9n7j2PpqSd818mZkvyfs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GHS0a8Xf6Xred+cYzUCobp0CO5HFqlKz3TIQY3mU6bj8O6iISvSlFxcQ7cGnFZvmyQnG6MYp6avD596xL+4iDhSG3I0mhAWDPSdmdGX8kVw4ja4uS1wSvgQm7ClFK/5JaEOTyStVc5gKbD6UmYDRPVz21/U6PJg6w7wt/45+Va0= 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=Ol2Ov+xb; arc=none smtp.client-ip=95.215.58.180 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 Date: Wed, 1 May 2024 16:19:49 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714605596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gB5I0eMNfCBUTfZ23aoOcIFer0EoKZ8W81G5ow3IHF4=; b=Ol2Ov+xbmWpzfzWgUU+hzKWkvEWMp6YCG0KgXR+STDs9VNYx+fqFGsfFDOnxaN/6u+odfo rDb2GLlHMGYKpABTUOsA6bf4ip8i7w/QAuvGbMjMnyOVlLNC9enGKv6aCrhHql+mG5342j prk2xaZS9X8ZeBLld3b86GQrBoAPSQE= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Shakeel Butt Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Muchun Song , Yosry Ahmed , "T . J . Mercier" , kernel-team@meta.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/8] memcg: dynamically allocate lruvec_stats Message-ID: References: <20240501172617.678560-1-shakeel.butt@linux.dev> <20240501172617.678560-3-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240501172617.678560-3-shakeel.butt@linux.dev> X-Migadu-Flow: FLOW_OUT On Wed, May 01, 2024 at 10:26:11AM -0700, 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 > Reviewed-by: T.J. Mercier Reviewed-by: Roman Gushchin