From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-220.mta0.migadu.com [91.218.175.220]) (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 022EC2AF00 for ; Wed, 16 Sep 2026 02:28:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.220 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789525690; cv=none; b=CUXbFrcGH6PplKmdsrxOVHG9FpsPVA0qiCxycHvmDR5Mt+1KXGabCdF9j33rw7WSzfNcSNM277WLW17zOGpnahqT+BYEiHHaef/RySEvQH29mPEvnsoPCDPuFPKNiZ1B0Gd54FfnvCb0ZPX1q9oFIeB/ITz+lrIctiyDMrBKA1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789525690; c=relaxed/simple; bh=ZyxvwXCuu3wDubtodIGxIsLb9DGpsFtLwTaxFFn+nac=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=daHtmREh7r+auU6oMf5gWXehEPhf04YrRT31GHWyFZyJLHzVs4W5ia21RHi2qdjrxFEB64Baxye5E5puwSUkWwer7CQjdObp+6dyXcyWFOMjcZ9fXcij2u41RANsjoTsu8BQIKJS9a5bzeVrvHelsICU5wGFccL2b2yK+GSz5cI= 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=icxZfwJW; arc=none smtp.client-ip=91.218.175.220 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="icxZfwJW" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=ZyxvwXCuu3wDubtodIGxIsLb9DGpsFtLwTaxFFn+nac=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1789525684; v=1; x=1790130484; b=icxZfwJWf9IQMeeSSW2HGckpLv/cicx7r/t1n3GOKWT4uTHFT+Tzb0PjFo1E4waqCykBmRue C7eDTylMdvEocKy+BNqjgV1NKoBD5QWzCUtMghpQDMa116QaawXSRGqYNO05I9sK6+t7b9G/5yj yISOx8NczZymSfEYFS6PWUfo= X-Envelope-To: linux-kernel@vger.kernel.org Received: by mta10.migadu.com with ESMTPS id 00efc25bd57ee33c; Wed, 16 Sep 2026 02:28:03 +0000 X-Mizu-Trace-ID: 00efc25bd57ee33c 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 01/11] mm: memcontrol: take a const folio in folio_memcg() and friends From: Muchun Song In-Reply-To: <20260915-folio_memcg-const-v3-1-c239a6010b58@columbia.edu> Date: Wed, 16 Sep 2026 10:27:41 +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: References: <20260915-folio_memcg-const-v3-0-c239a6010b58@columbia.edu> <20260915-folio_memcg-const-v3-1-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: > > The folio_memcg() family only reads from the folio, and everything it > calls already takes a const folio. Constify it, along with the page > wrappers built on top of it and get_obj_cgroup_from_folio(), which only > reads the folio's objcg. > > Signed-off-by: Tal Zussman Reviewed-by: Muchun Song Thanks.