Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp14845pxy; Fri, 13 Aug 2021 21:07:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJC9eayFKK6amHHVyIY6oiN1JcidSlGTfuxVvJ9aKIV30hk7HdOVpAKoQngXrF4Ojcw6op X-Received: by 2002:a02:a619:: with SMTP id c25mr5341697jam.1.1628914025647; Fri, 13 Aug 2021 21:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628914025; cv=none; d=google.com; s=arc-20160816; b=kUpylHlWrr71A5bkb5CPZYgiUKTHQ6Y78oi43t5wtyhO4HplNuduI0nkdy45CBf63n LXpL2luPEFzCeZdAWBoJ8pydjSA2eqeFhorNDP3WbFcNud0revKcSlkpIl1tqhbPgpf2 zTFQfI5zgNjQf0cWckgU58XiR+tWgnw1DQ7cLBqSubNaodJ9W7EsJZ5Untup2AfnVPGc kFr+xbxBV4RFZGWF18Fk3DlyCKq8z2pnXeEsTT2rgMOHs73XdFPZ2+dCqnGhrQ8kBVK1 K1JSyg+MIhQ6PWIDjmHBA1OcxhSM0+uea6h7JVtPkHYglP4T+JIkKjGagL7yMDWBq1aG 3q5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OzjG0eOWjSaTVzdwrlhA4xUXM2AfVf8c6T5tJbSz1go=; b=ylHzG9zAqYtu7KORPJ92IxfuqAEHlZ9v3gNbdvxhJfA3p+Lhlk+2Lhoqyb7z9vbIAU BSokqMnOuT1LkyTT47onQcsfy87m5xZV4oibKMzRFEDlHA+qWSOSZ/jhVfKYTaAGo89T AvXtZ/UHC6yXK/MKg2Mq3rSQUDBP8nBaZESwul4OTqXk36QgL4MkRYNAuBgOFkGFnC8T Na04hEbJzaU4fBTO9XfPgP7EgPFcR0p1hnTLP+rWQmw01rc2Pujb5whSqh7dH/mPJFIF 1o2w0JYtSKJM3zEtR2FUNfYLBaW5VHBg/QAOESG390d64VrcKpRXr8oiaq/Bpgk7hi5G o+5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GMiVEV1p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p35si3806425jal.123.2021.08.13.21.06.53; Fri, 13 Aug 2021 21:07:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GMiVEV1p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229499AbhHNEGl (ORCPT + 99 others); Sat, 14 Aug 2021 00:06:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbhHNEGk (ORCPT ); Sat, 14 Aug 2021 00:06:40 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A73CC061756; Fri, 13 Aug 2021 21:06:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=OzjG0eOWjSaTVzdwrlhA4xUXM2AfVf8c6T5tJbSz1go=; b=GMiVEV1pzyYY/voBVEbEdW1p52 Adwfq2c++/p1q6s7sYbZIB4lPhSO6EsiSYSVWWPKqWfGyfrQp5smbanCUzny8pnpGkA3QDiekO/pW 3NReojatqkPbUVwSQCM3ZsWP25Bhn0l5SprZRHWP5B+fnvD2iAredMtPzWEsP4RYda4/WM1oaNDvl aVD6eISnjsEaYsMaVxUUCCjTVqTnw/yvPq0cYw6TCSZHENEB3rlP1M1Q80nJVWCQNlsvqKqnxOrvy s7y6aQJglqgqgGVO2GYxukH1CQ7NzOYmIbyh/MgwxMCntHb/A63Nj+ozRwYlrajhauphJJfjTLjw0 qPKNw+8Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mEkvY-00GMni-8p; Sat, 14 Aug 2021 04:05:53 +0000 Date: Sat, 14 Aug 2021 05:05:44 +0100 From: Matthew Wilcox To: Mike Rapoport Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v14 050/138] mm/workingset: Convert workingset_activation to take a folio Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-51-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 21, 2021 at 12:51:57PM +0300, Mike Rapoport wrote: > > /* > > - * page_memcg_rcu - locklessly get the memory cgroup associated with a page > > - * @page: a pointer to the page struct > > + * folio_memcg_rcu - Locklessly get the memory cgroup associated with a folio. > > + * @folio: Pointer to the folio. > > * > > - * Returns a pointer to the memory cgroup associated with the page, > > - * or NULL. This function assumes that the page is known to have a > > + * Returns a pointer to the memory cgroup associated with the folio, > > + * or NULL. This function assumes that the folio is known to have a > > * proper memory cgroup pointer. It's not safe to call this function > > - * against some type of pages, e.g. slab pages or ex-slab pages. > > + * against some type of folios, e.g. slab folios or ex-slab folios. > > Maybe > > - * Returns a pointer to the memory cgroup associated with the page, > - * or NULL. This function assumes that the page is known to have a > + * This function assumes that the folio is known to have a > * proper memory cgroup pointer. It's not safe to call this function > - * against some type of pages, e.g. slab pages or ex-slab pages. > + * against some type of folios, e.g. slab folios or ex-slab folios. > + * > + * Return: a pointer to the memory cgroup associated with the folio, > + * or NULL. I substantially included this change a few days ago and forgot to reply to this email; sorry. It now reads: /** * folio_memcg_rcu - Locklessly get the memory cgroup associated with a folio. * @folio: Pointer to the folio. * * This function assumes that the folio is known to have a * proper memory cgroup pointer. It's not safe to call this function * against some type of folios, e.g. slab folios or ex-slab folios. * * Return: A pointer to the memory cgroup associated with the folio, * or NULL. */