From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Ol2Ov+xb" 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