Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp420928lqj; Sun, 2 Jun 2024 05:00:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCURSDReWsh/0OSaPwtPgRH/tm4I8pYFcVd7W+qORAgpjzFlfFW56/BB4SITWURjTt6V7kGuzf/jiWbQ0ISK2uzf3tfnfpffV/TOrt+PnQ== X-Google-Smtp-Source: AGHT+IEihaX1/66sOXq/BoQPoJmZhTbWYst2G3ODWEk7DTCi5UuU+zFD4ngGHpNIA7Bwoj8T8RIR X-Received: by 2002:ac8:57d0:0:b0:43a:712c:f985 with SMTP id d75a77b69052e-43ff54a4354mr89012241cf.56.1717329628338; Sun, 02 Jun 2024 05:00:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717329628; cv=pass; d=google.com; s=arc-20160816; b=JL4U8NNwHSpgQmKVf0+NEhEBX/NIxpt8Q1kvFqYUp/kGJr7FsrRFQt2kBDXXl6MdXL Uv4r5pmD0fQ3XVGr9nep5npXbza//PMnluK0C/jeqNO49LWDhkP1Z6EOCYNH7a0fcMAP tEpKVTEG3TGzIRfU21qQMQVZLYrwP+yMPHSSJuivg4ZJZIsvOJ5RPKGbNlOoOxTAwfZN w0AcnR7EuP9a6Q/qUU0jnMh+zgmYw5/VklyPFGE4lU/eKExtzEmAKPgHu2fSVOqO78Ia ORsxQPKrpIarNU4bjgi2JkjLvo41qyRbmQO1jkOjNrEhm4ygaFKA7jLAnagE+7iBhax6 LNQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=XL/a/t0HNCjbSIN7BOvuvI2I2oiI7guAXKEDmSOgeTg=; fh=umfEyT5fTRX2A6SfWOEzptxxTHPvfV38dQM/IuGwYj4=; b=MzRoACec036w6JrwHIJox4bC/K4H18uBzFd6hpNoFE/hVcyOVPaTgtQuki/WaYpNf8 YQybNYFVFWwLVXwG5gCyh98qMHGqL8S7dJKMwtRsc8s4VzXOz8/e1bjFhTtmplfhDlVG mpXo6aEuzs+w0Uwj+bsvqqYIQirmYyC4VLqUTCzePHXfbBz0WKSCOsJQ1k8yWkv/+U4d fLOWf60oQCqm2OJEEOr2u8OBO+3ZAm8jTLPJpA0OJEdmuZNV4+GKmBlTUU4YElQidZ2+ CV6982BS00mdZDFotBH23sJb+NuVhS9nmDo7QOG7VOXKOBaxN4x5tykMXQJzdo2BSjvh i49Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=i9NyiqJr; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-198224-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff23dbc99si63394891cf.210.2024.06.02.05.00.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 05:00:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198224-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=@gmail.com header.s=20230601 header.b=i9NyiqJr; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-198224-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 10EAB1C20D90 for ; Sun, 2 Jun 2024 12:00:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DC9738F82; Sun, 2 Jun 2024 12:00:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i9NyiqJr" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72909381B8 for ; Sun, 2 Jun 2024 12:00:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717329622; cv=none; b=QWO4OVpGFuT5KW8bMl9bpRx8YFGkG2zvUJWTyYvxTkI4h23GEjF6S+4zwuRChrX7cShg0/OwmrjvJCoUtK+Nx9OqYxTG1UNjT8AQXOkmsrw5JTCRMTTrUxPbwVhgfjgW0osTBo98gAF3lXenZ+iU7hYdmWOXeoZ7F8PS7PIze6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717329622; c=relaxed/simple; bh=CHVtnpg3uCqxc9bMDs1cBsccakyGZI17Hop+IfNVdfU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=foOPkrZdomHl8s67Bjl98SDOooAR+Dazv9iAHngIbXlZbaqu5fBYz65bQgbm+DFXLWp9opnl2XTfLsFsfxsYdflC+kubzv9nmhEcL1Z3r5vJkQUps2zDBqtq4ZUEzcQ+suH7WKBaBdwoUWYNGDD7knlvEwFou+WwkUpkiLCfqQ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=i9NyiqJr; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1f630e35a01so19012685ad.1 for ; Sun, 02 Jun 2024 05:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717329621; x=1717934421; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XL/a/t0HNCjbSIN7BOvuvI2I2oiI7guAXKEDmSOgeTg=; b=i9NyiqJrbu87Fds8B5iRqJn1W1mt34uu9s3juLbf81LPLkIo+rNSWGixX700f/qBXN bTmZs5Xdr2h9wZ/K4I5dA0mVTsKXkzTAuvtYvnZ3fi5A6upvPvPDqrKM+jj8x3y/cTjI Hi383MKF8p6k5nMelbQsKXlH7U+odoTO8ZVbp9VWa6fFfPv3JkIDzEbu04fYO8AS8RVe Sl+D7QDgyrA7S5q3RbYo5BAbUMJONk3MBMi3rNMgIMlNBLsXmyGhbsmpvLZ3Hgqo3ZQe +BIHvXIdDKHa1ZqZ0hmdrY510XlrfF9zDPWI/U5IYDakQudfHr1L9Wsx0gSzw7wlfGfU nrQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717329621; x=1717934421; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XL/a/t0HNCjbSIN7BOvuvI2I2oiI7guAXKEDmSOgeTg=; b=MDGF9E+4/8Rt1PFUVwvf/x2P9mInNLJypBJWQAv/XeFIyRM5WfnvGYngR7/+XIlgV/ wmIugXbDW/Ho5MS3WwdeMrcLnH8BRKtutDV24BY6oG7qkoT672d7g/IsOrYX1rO83WKJ pAVJWHCXyrK4yPG80srrV7KVdKC9//jX3OUmVgIkSP9tWJ9NbgfyhU+p7qiHXqrPTZPM NMBI9epfQth+WsEFbfbaLRqipzhv9bLWXQg+tih7x7XKefp5pqzcZ/ta7+XnjeswP1E5 vYeoGQTrzVVeH2K3nppRZEBxX5DyK3+nvIImPTRlohsxYUgvLXFdzI3qFQQzbMDGPuSd TZUw== X-Forwarded-Encrypted: i=1; AJvYcCVRz02nNtgfPZ4DCCJ4JEGUDas1HRkn+4CLtcBG/KUUQa41RAA7x6fdpvDMMWZ/7QLqCtoNldLSOhkBuQeX7Kudu0uQW5/gC+KdLO5b X-Gm-Message-State: AOJu0Ywqeh2T2HKLiSmmQyxmF71358PNSRuUOK2urINYWRkBpRkfc04s k0CFQ8psjFSk0jvD9Af2iAv+wf7LzjzQBxQgHmSUSf9JFEli8QST X-Received: by 2002:a17:902:dac1:b0:1f6:1c1f:f31f with SMTP id d9443c01a7336-1f6370bf132mr85003295ad.64.1717329619913; Sun, 02 Jun 2024 05:00:19 -0700 (PDT) Received: from LancedeMBP.lan.lan ([2403:2c80:6::3038]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6323f6d97sm45919145ad.218.2024.06.02.05.00.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 05:00:19 -0700 (PDT) From: Lance Yang To: roman.gushchin@linux.dev 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, Lance Yang Subject: Re: [PATCH v1 13/14] mm: memcg: put cgroup v1-related members of task_struct under config option Date: Sun, 2 Jun 2024 20:00:04 +0800 Message-Id: <20240602120004.62824-1-ioworker0@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20240528214435.3125304-4-roman.gushchin@linux.dev> References: <20240528214435.3125304-4-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-Transfer-Encoding: 8bit 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. 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