From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-13.mta0.migadu.com [91.218.175.13]) (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 447EC36998A for ; Wed, 16 Sep 2026 03:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789530816; cv=none; b=NknB1snSLckiFFC+osGh39a7fnEoJUdtaCi1oKuLQMfdUExpjHWcb4IZeUZ16BWip+N0yvWIAYWB2GncaufiIg9bvSnlBQxhTa9PDXvhtgyVfQTRK8w9qFW4BQqZfLE4qOJVe+RM6+/+AuMSo+jXqC87glguSy5RhPibBMmwSB8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789530816; c=relaxed/simple; bh=iD1Zr44c3eJx/67Yiq6Q4RmBQIq6pGG8QPAJW2oa024=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pSp/s69WYAGoGTVUIsXoqaVXNpjxLox7EhrrmrsaoSauh45gxYdPUJ28HdKSVzNW83dSNgiSqsDtsGJhWhKwy4b/0BeGHIVRz7YZo44L+eJRcU8IzdoM8iNNg6LA3fpfwNR64mC41F5UIMS9DLvzsxjaAksnvuqJMXmmsbeBkj8= 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=iNoxY8Sx; arc=none smtp.client-ip=91.218.175.13 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="iNoxY8Sx" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=iD1Zr44c3eJx/67Yiq6Q4RmBQIq6pGG8QPAJW2oa024=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1789530812; v=1; x=1790135612; b=iNoxY8SxpHy695fXnlSdZY6m3si2qLDQzkUoY4LsdXf+VN88/8n+kAvbC/0HgodAP7Nn1WT4 SznAK2yX64pLIqtA/FWch8Cpw0WJ5MT6iqqaD2lhyFs5kjQcuKTUStykIxtH3nTWU58bqN4vBs2 ArcWkfD98iASnqZZ6eYA0Ga0= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 0948599592bf7fd6; Wed, 16 Sep 2026 03:53:22 +0000 X-Mizu-Trace-ID: 0948599592bf7fd6 X-Migadu-Flow: FLOW_OUT Date: Tue, 15 Sep 2026 20:53:10 -0700 From: Shakeel Butt To: Tal Zussman Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , 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 Subject: Re: [PATCH v3 00/11] mm: memcontrol: constify the read side of the memcg API Message-ID: <20260916035222.GA19557@shakeel.butt@linux.dev> References: <20260915-folio_memcg-const-v3-0-c239a6010b58@columbia.edu> 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: <20260915-folio_memcg-const-v3-0-c239a6010b58@columbia.edu> On Tue, Sep 15, 2026 at 07:20:04PM -0400, Tal Zussman wrote: > The memcg accessors, lruvec helpers, and stat readers only read from > the memcg, folio, or lruvec they are given, but take non-const > pointers. Constify them, along with the page_counter readers and the > swap I/O blkg helpers along the way. > > This started as a follow-up to [1] that quickly grew in proportions :) > > [1]: https://lore.kernel.org/linux-mm/anYqSDnC2BbJXv1h@casper.infradead.org/ For the whole series: Acked-by: Shakeel Butt