Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp889904lqh; Sat, 1 Jun 2024 00:06:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYV1kwkD8LOVV+QpxhYQogWBwcv2FczDZXwXFlaObmD3MLt4TVxsQoNEHPnH46wHMa8Ll4d66/kTamdovqiQUPIpuHlY0jzHh0/IZk3Q== X-Google-Smtp-Source: AGHT+IFKHESODTLeO93XdXCKv4o/Eb7M800quMHTFPUJrxY5V1yCV27V7s3bThSC+ARXmKs8Roo/ X-Received: by 2002:a17:90a:3d46:b0:2c1:b99e:6fd7 with SMTP id 98e67ed59e1d1-2c1dc56d9f6mr3521811a91.2.1717225566784; Sat, 01 Jun 2024 00:06:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717225566; cv=pass; d=google.com; s=arc-20160816; b=iJDsKMIfhHc1oR9djjpOPOT+V5JWmxkAQ/Codv9F8znDlTkB4HSx4W+tgZjoAOaygC OgqPg032q2DzaBuESnnfOoZ4eUJkq3zHjy2JHU8cTws48zuJWi2wiidSWygIuMQuf1Qi /o9y8dXri1sgqOq1XHzj/QdQVZHhrxH1EW9AYCgqf9mCIvIeFl3xbObJk6PQ/vPWOTWo c60TdDwy5oNiO4Ixq6GinNExn61m5ZORB5Ev+FiT4zCnd6yTn1RSnq8g+OLNqt8qV978 +wqPTDKeOrzRKRy1P0cJWZ7rOC5k+cJD7+dHfn28JEr79qoyUAbEhq78GtvWcO+iInXF xlkw== 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:date:dkim-signature; bh=iJubcso589KiLIJnUZuMBuVe5VacFLyisMc2Ijiw/lg=; fh=V6GbPCat9tMLabJCBxD7jX0Vrhw7hVwYdPayKl4sW6w=; b=ixeTDI3al895ZukamhBDJANpDieONVKOTiz2nleamgx9K71HOPuuWGoXoTWKHFTzEG IF3u8et/TR/2B/BMe0Fk/wwPCsZSODVmYey6dOuiUuVNq5UzNZJHkoPpoTS6UntGN71l p59Hno0pijOFlONL2nRfbcEv3zblpE+GaTAv6S2PA8RSl1FQhFSM5aa9IFen4uvYNIym iOaHgEXoPPxNAA8hbrAdO05zYEA5AP6cKbtALQcNdYKXvB8vAzMdayBNhO9d4jXeXm78 0ZJOHFkEfIYOId5OGvuTuYl17McuTCfbgDTcLTmHqxnv1uRb4oW8k6uImDAsXfnqroGu +z6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Q3zEMGNS; 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-197729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a77c33b2si4876196a91.130.2024.06.01.00.06.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 00:06:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Q3zEMGNS; 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-197729-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197729-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A2692B21EC5 for ; Sat, 1 Jun 2024 06:42:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0429B134BC; Sat, 1 Jun 2024 06:42:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Q3zEMGNS" Received: from out-186.mta1.migadu.com (out-186.mta1.migadu.com [95.215.58.186]) (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 A55773D8E for ; Sat, 1 Jun 2024 06:42:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717224153; cv=none; b=XC0eG8SJSfisAwW5oAdKN7Bq74peATi+e1F6fcMSt0wB5cj6FIWkCr9wre52AD+X1vaxjlvmSR6kziEI0MJ4ICqq19T5eXi+NnqHsmzfhOUB1dLVKPnCdfnjR0BOGyHscW2fVqP4ZAH2zta34KqvAEFOoLDKm5thmeok6oAfriM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717224153; c=relaxed/simple; bh=zjiBAS8Uiy1EkJEUIUZb4M0oIoEWM4PLw4NoJgqQuBA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TU2NGpxgjY0RD+9RjtwXTKVHocgLJcCyj54XKgH4HZ+GXg0CVMesfpzY4Cf4V+LoSmjoV4BnxEvi4IfohM80lV+YYqsOWAfAMFaCfJWyUcSKg2xK9nBxKaRp2aCFuQR6hksIT9mrRNlWMlC7oLjUhkDOKsrasM7zCFLxfW9ELEQ= 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=Q3zEMGNS; arc=none smtp.client-ip=95.215.58.186 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 X-Envelope-To: roman.gushchin@linux.dev DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1717224149; 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=iJubcso589KiLIJnUZuMBuVe5VacFLyisMc2Ijiw/lg=; b=Q3zEMGNSsuXYI7HIzD4DjUwY2P91IcLpkC9RNUoz6DvDUXelHgf3hWoKTaMr7W6Z7Gy0AI k+8vv/M4f71DX1vLOwlPfaYWxMkRxBdxDiqkoIVyVHu04fDqsvNDehxB9tgHgk72uZNYlf mgfRV84K5VBjl47fjCZc8uCuCz0/FTk= X-Envelope-To: akpm@linux-foundation.org X-Envelope-To: muchun.song@linux.dev X-Envelope-To: hannes@cmpxchg.org X-Envelope-To: mhocko@kernel.org X-Envelope-To: willy@infradead.org X-Envelope-To: linux-mm@kvack.org X-Envelope-To: linux-kernel@vger.kernel.org Date: Fri, 31 May 2024 23:42:26 -0700 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: Roman Gushchin Cc: Andrew Morton , Muchun Song , Johannes Weiner , Michal Hocko , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 01/14] mm: memcg: introduce memcontrol-v1.c Message-ID: References: <20240528202101.3099300-1-roman.gushchin@linux.dev> <20240528202101.3099300-2-roman.gushchin@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: <20240528202101.3099300-2-roman.gushchin@linux.dev> X-Migadu-Flow: FLOW_OUT On Tue, May 28, 2024 at 01:20:53PM GMT, Roman Gushchin wrote: > This patch introduces the mm/memcontrol-v1.c source file which will be used for > all legacy (cgroup v1) memory cgroup code. It also introduces mm/memcontrol-v1.h > to keep declarations shared between mm/memcontrol.c and mm/memcontrol-v1.c. > > As of now, let's compile it if CONFIG_MEMCG is set, similar to mm/memcontrol.c. > Later on it can be switched to use a separate config option, so that the legacy > code won't be compiled if not required. > > Signed-off-by: Roman Gushchin Acked-by: Shakeel Butt