Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1355921lqj; Mon, 3 Jun 2024 20:59:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmHpDtflgHLM7agvtA/MN9cRVzG81TuAiAZQSg0I7Abh7s5cKeyxYbLsuZvhxSAVEAAdsxxZ3fPrT/SW5FtMUsADfRcijLmrb5N+JYTw== X-Google-Smtp-Source: AGHT+IEwOWVgeVaUmStoLxfUGnSQ0XAOF5Aen+7dfnXSoe+cvDd16yW2O4i45dIulYUFQUkbFr7Y X-Received: by 2002:a05:620a:12ea:b0:792:f550:6780 with SMTP id af79cd13be357-794f5c79da9mr1098077085a.27.1717473553190; Mon, 03 Jun 2024 20:59:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717473553; cv=pass; d=google.com; s=arc-20160816; b=yeSclT1s4wRe1L7y/Z0x6uJjwHmZ561MoaXiXddH7nyp7AwYAUipOA50CZIiI/RchS 6ZDXmWfl0QMugOEuKOslJxwii2FBDilmykcqhjRTIQIwggDbumvZ8bAvuHUp8bmg10l3 5l/xXMAY91wbUU4jwiyTQ7h3Hz8hUNBgxbawG2R74Xk5vlMgne0pAg8bmgouYs/bbyS2 kXN1Ri6xSSBVYPMsiGrRVCpPOJRzeJ9Sc7ZSpG/v+Mo1a5lUN0r6hBa/C7XH2oDqyYXm lW9ErX6puJ02ZLn5hT6Rx4D9ttsHCFB+DX7QSnB4iOyYqXLiS5s7U3qRWyn9Qgrrr9NE eBzg== 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=wcIwdhXjgCXM5nAKh4wQoHGkD9HOZr/S7iJ4JQ/QrKI=; fh=f7WiuGRZIX+sL/QZy7eaDlpPNwFDoYegkK23ZZzAwyk=; b=x3PEX+TyyujUictRGDUwnXg1ZzcJ8WWSB2HRVppmuYdj2SrZhvQw3wqluEHMNlQy7Y JMej0iFCi244xZ1nIq76hXiXHJIg3hdETHWNwivvdQweok3CaAtMlPiMsigBoSlrSdfo b2C5ezr9gWnvrv771z6cIYUaWymJnUEenpd3R2Yl6c/bLdCtcXZcG0mkptMkrbpMhmr1 6OnBZ9cq83YGIJdlOie6czILhYG6wbx7gSRernp+084cMKYSOFQCCcpR9eMLT2HNo3EL ryOO+GMTOzZS9e+mqHqq1t3LCXPTg2+lZX/YnRPWOHAen1eDDk0aLeb7iNBv1lausuaH CNqw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=jJoEt2G6; 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-199993-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f2f04f08si110663785a.60.2024.06.03.20.59.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 20:59:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199993-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=@linux.dev header.s=key1 header.b=jJoEt2G6; 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-199993-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199993-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C91DB1C23311 for ; Tue, 4 Jun 2024 03:59:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 175C813D881; Tue, 4 Jun 2024 03:59:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="jJoEt2G6" Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 705F1320C for ; Tue, 4 Jun 2024 03:59:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717473545; cv=none; b=hx/Mm6PYiyWkB5g5v+qrO5BMMonOpTLBC2DdhUNmu4lJI//Kmz/bQGs6i55jBM7biUHW7AadvCXfnZhTt1NIHgmfT8SeAkx7/U32Dax02v+zXnDMyNyKQCnK4lYc/ZnFUM3/7KJiafQgCd+4aUZExYU2Xnoc/JqKlCb2ASfPMOY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717473545; c=relaxed/simple; bh=DS2P1V1LkWB8mLDkp7hPHOFr0WGw528BByGZ+JLq07k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kAk1RU9fxjl8EE98+vqDXxYBWYFly0ROL3RRJ75ZxWKa3rwiGd4AJ42IqjBFfYWhJwJZ+JnchZuMTlIgWO4tr82OcOprJcSsTx1vIq5w6kVKE4ifDU6ZD43i6c7w0DjYR8P6ZxZDb6neYwj8qkGArr0QxCjT/T7EHzbzb5r+8uI= 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=jJoEt2G6; arc=none smtp.client-ip=91.218.175.177 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: shakeel.butt@linux.dev DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1717473540; 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=wcIwdhXjgCXM5nAKh4wQoHGkD9HOZr/S7iJ4JQ/QrKI=; b=jJoEt2G6Y7Lkt3dwCjuVZIex2E0FeFcllXzKOAPkGQ/qS/qqoAC26s8l2BunW5KlwcG9hz pVmqcmMUZ6XblLZ6JWjzVrYMd+k40C0pFm6RWuMZUgN/j3tzyoF79zyVjFf3KONtG5Tj7i ++byTWplnKkCN7+yU4f0rHB19zgtvJM= 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: Mon, 3 Jun 2024 20:58:55 -0700 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 , 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: X-Migadu-Flow: FLOW_OUT On Fri, May 31, 2024 at 11:42:26PM -0700, Shakeel Butt wrote: > 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 Thank you for reviewing the series!