Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1169261lqj; Mon, 3 Jun 2024 12:16:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW84WLcIjd2bDhuQSsaR2GkDlinQ33INKzEQsR8nQ0zaenYXzn3N+spRQJO0iLWtGiPF7h4uqWpMc9sFuPB6idUvnvDbQjCcninjuOH9w== X-Google-Smtp-Source: AGHT+IHmLqTI2JlqicntBPf7JyLmE35CCihfrMazPpoGWD08pZDWocatmHpVCEB6b+6jDEvkG0jT X-Received: by 2002:a50:cdcc:0:b0:56a:ae8a:acc0 with SMTP id 4fb4d7f45d1cf-57a403e4c0fmr5674974a12.21.1717442184179; Mon, 03 Jun 2024 12:16:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717442184; cv=pass; d=google.com; s=arc-20160816; b=dJ30Erx5t9eHiz00sGGwSad1alHQ6/nosglwpOvlzlRJscYNFNwHt4AYXwc/nax2hJ Z7pAu2K/x/fIMrhM2q3ZTNKwZprTm88WgpBGhECovxKmO5Fb3DWmPUIR0fJc9nAJTYAq lwoN5BDsfFJlEGAJ0tGvxROPxnqdJDrAHxiZ/Vp5Y3yRWL6zu4f01saK0i4tyr+HkRyO dOkoe0NspT9VBQ07GakLBmau3TdkFNyAm2cHr4mQDbe9yIJAaXt1+9d2ske7eg7t7dI3 4d6JWFggYMbOwPqK/2nHfP+Kk6/aZdSog2HLgTFYB4foBP3ajUpQzIyVN/B71igstuNK DHsA== 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=0CfPycTlesiBI7O8m26mD5Nmbpxcsq3cn9s/d4zl6+c=; fh=nRX8kqwFI+GRHbNVIVy+oJxSEScvjBK/MPYUrDh0NrU=; b=mp43fRfIEvPUNOokXzzDREJ7P5H8GK0F7gi1XcF8O1VIl41VKRJtQ7qndal8MlSmne o2qGTXxsEGV3k6nFjj45p7GUArdTDpyd79D4E0AxdzRBFKIH2wt/4D5v4E3Nl1HAW/T/ 1rgmS9BwrPNMxS0J3ng3Jh4Qeo/NIJsLtEkjNziklT4ZblSxyOtacpLxs5UkeQmDK79A XdsZ4uB9Q2ET1va7o9my91C5y1+ayk24ihrY+X88kRCWN8gYXb+x6+Rx37L+3uwrcnzk Ig6FNkeT6b3SIAddhJa2idHCVH/bcnE0h5omhRU8ux3t9uN5UThtxPW0AgXzseTZTsS4 k7aA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="c/TRXiwE"; 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-199627-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31b816basi4293967a12.90.2024.06.03.12.16.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 12:16:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199627-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="c/TRXiwE"; 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-199627-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199627-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E2D171F270F6 for ; Mon, 3 Jun 2024 19:16:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3BDC413C901; Mon, 3 Jun 2024 19:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="c/TRXiwE" Received: from out-180.mta0.migadu.com (out-180.mta0.migadu.com [91.218.175.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 0E43113C8F4 for ; Mon, 3 Jun 2024 19:13:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717442010; cv=none; b=b7ZvAUUKPtknf/xk7Ix5LURbYKmcCLOpOeb5RYy3R0hRWdvbnWzaT8q0KRGTSxuX3TteTtzR0c8y+0BH53MS4qGmZBp5MXO+K469CNkonFIumuYIhMGS/h79HD5Vs/bTyACbw3NvXmYp0DnAAqP9yx5pnikQghji/t5dSJUYLVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717442010; c=relaxed/simple; bh=3EUOQpqoWTALoxHP7cKEi2n07XexJUCq8UIyMIfbT3E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XD9bgS6qR3e+M8k2ZKYNi8OOCZxdWWvMIX4dSanFQ2jo/LR6JluWXak6SxuRZTaxPthQGuN0Gg1wSTZV3DTCvpdxFycB6SHAtWqpsj9RBU9rdb3BFMF67enIHxsL+S3seATNTq223Mx8WN0sXC3FatXRoRvr5Qc9o5eD42TO1Hk= 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=c/TRXiwE; arc=none smtp.client-ip=91.218.175.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 X-Envelope-To: ioworker0@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1717442002; 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=0CfPycTlesiBI7O8m26mD5Nmbpxcsq3cn9s/d4zl6+c=; b=c/TRXiwEQ5O/B931i2eqaWnnWA17s39759N4Grg/wflQ7gTJnyH9jW3WWx0pmxjFf8X3hC fhBp7h9B9zFLBp99INlqNTdQTG/v3GRLjnLCy4Qai5gieGPkccJ07WfetG7iKvXyzdeXXI 3k9ofPrDuJEmVWM8itBv8AY4+8Vu6Uo= X-Envelope-To: akpm@linux-foundation.org X-Envelope-To: hannes@cmpxchg.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: linux-mm@kvack.org X-Envelope-To: mhocko@kernel.org X-Envelope-To: muchun.song@linux.dev X-Envelope-To: shakeel.butt@linux.dev X-Envelope-To: willy@infradead.org Date: Mon, 3 Jun 2024 12:13:15 -0700 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Lance Yang Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mhocko@kernel.org, muchun.song@linux.dev, shakeel.butt@linux.dev, willy@infradead.org Subject: Re: [PATCH v1 13/14] mm: memcg: put cgroup v1-related members of task_struct under config option Message-ID: References: <20240528214435.3125304-4-roman.gushchin@linux.dev> <20240602120004.62824-1-ioworker0@gmail.com> 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: <20240602120004.62824-1-ioworker0@gmail.com> X-Migadu-Flow: FLOW_OUT On Sun, Jun 02, 2024 at 08:00:04PM +0800, Lance Yang wrote: > Hi Roman, > > I noticed that you changed '#ifdef CONFIG_MEMCG' to '#ifdef CONFIG_MEMCG_V1'. > However, it seems like the comments for the corresponding #else and #endif were > not updated accordingly. Hi Lance! Good catch, thank you! I gonna update the patch, if there will be another version. Otherwise I hope Andrew can pick your change as a fixlet. Thanks! > > It might be something like: > > diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h > index ba55ebd15354..796cfa842346 100644 > --- a/include/linux/memcontrol.h > +++ b/include/linux/memcontrol.h > @@ -1883,7 +1883,7 @@ static inline void mem_cgroup_unlock_pages(void) > rcu_read_unlock(); > } > > -#else /* CONFIG_MEMCG */ > +#else /* CONFIG_MEMCG_V1 */ > static inline > unsigned long memcg1_soft_limit_reclaim(pg_data_t *pgdat, int order, > gfp_t gfp_mask, > @@ -1922,6 +1922,6 @@ static inline bool mem_cgroup_oom_synchronize(bool wait) > return false; > } > > -#endif /* CONFIG_MEMCG */ > +#endif /* CONFIG_MEMCG_V1 */ > > #endif /* _LINUX_MEMCONTROL_H */ > --- > > Thanks, > Lance