From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-139.mta0.migadu.com [91.218.175.139]) (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 0E7E23AA1B2 for ; Wed, 16 Sep 2026 02:33:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.139 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789526025; cv=none; b=gormS3/e4KIQHgbh9coc0PoX8WbzMHrnmd7d2yr5koPWkjsVBcCsfpx/RMjNTlg2a3xRkfEphlzqP7Z/pPSVimFJTwwcENxJTaZnF/CcVU+iJKJNj+5I04aXUvR7W+FEfv40OQOJ1aQ5ARVeq85Yp1VADuKVv++PIDfgSElUwF8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789526025; c=relaxed/simple; bh=dmqLGPHS5kHvLWv/Z4DZUWftUs7Vfj/dSFIQY//nWpA=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=NlVVWVVphhvB+xzrcwUfePBK/vRyRaAT4ZkfLsLIMXXRyRndeMMGDKq/sbiJCJC+D0PmzMlT/zcLy+XY1c5HFkCKS1EF1ASaLDuMaQFOoAiVFpF//ucT1LTLHTOh3iYeCNaL/Z6Zgo+TfAQD6c5GBlQ9Dw+pIjyyX7zdtKxz4j4= 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=rOeqZ7Bu; arc=none smtp.client-ip=91.218.175.139 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="rOeqZ7Bu" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=dmqLGPHS5kHvLWv/Z4DZUWftUs7Vfj/dSFIQY//nWpA=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1789526019; v=1; x=1790130819; b=rOeqZ7BuPfCy7fiZIessAox8kfg6ipSycY01FTv9St7OaBWI2Xriy23DwEEpvAY0ZUva5I6j V1JxZqDu9YrlHZSucw4j0vi0RaF//CcBH45xWztVu41wldeH13tWf6iIFiRhQiPW1MhNur/7WC3 KDunnhEBfqs6KJI8k8wokjqw= X-Envelope-To: linux-kernel@vger.kernel.org Received: by mta10.migadu.com with ESMTPS id 92a6ddf91915ff06; Wed, 16 Sep 2026 02:33:39 +0000 X-Mizu-Trace-ID: 92a6ddf91915ff06 X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset=us-ascii Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.700.51.1.1\)) Subject: Re: [PATCH v3 06/11] mm: page_counter: constify page_counter_read() and page_counter_margin() From: Muchun Song In-Reply-To: <20260915-folio_memcg-const-v3-6-c239a6010b58@columbia.edu> Date: Wed, 16 Sep 2026 10:33:18 +0800 Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Kairui Song , Qi Zheng , Barry Song , Axel Rasmussen , Yuanchu Xie , Wei Xu , Baoquan He , Baolin Wang , Chris Li , Kemeng Shi , Nhat Pham , Youngjun Park , "Matthew Wilcox (Oracle)" , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <84761082-E7FE-4984-A7BC-9D2065642280@linux.dev> References: <20260915-folio_memcg-const-v3-0-c239a6010b58@columbia.edu> <20260915-folio_memcg-const-v3-6-c239a6010b58@columbia.edu> To: Tal Zussman X-Mailer: Apple Mail (2.3864.700.51.1.1) > On Sep 16, 2026, at 07:20, Tal Zussman wrote: > > Both only read the counter. Constify them so that users can read > counters from const memcgs. > > Signed-off-by: Tal Zussman Reviewed-by: Muchun Song