Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp767920pxy; Sat, 14 Aug 2021 23:29:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd25zbUADIXPOfo23imF7NSyzv2wfDJtdMrCq//0K5tZOgjMb5sNQ5I/u64xyEE9SOUaB1 X-Received: by 2002:a05:6602:1848:: with SMTP id d8mr8102122ioi.72.1629008995389; Sat, 14 Aug 2021 23:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629008995; cv=none; d=google.com; s=arc-20160816; b=QxCywkWJbtLjVR7TgWI1GOatvPE+hLOUrlxdQ6iru0pd597QmIgRTcUELCJAez5hhP yVLdxXshQ2NOJEw1MrvaZCLLwNB/cpGzSdbs/w53t9Typm40dMoAZ66cOnHGRz+s8I68 GmrgX+aQbcvSY8eqU6jveFKql/FObvIvlRTpTYBKxruAF5oUVbhP3WpcAXCCi6QLSNLQ XJDr9irpN04h+n2+I/uK5mE/E6e9T3J7JNcBIxQvJau02DtRwrSYRQKqF7SRUFKPdWu6 MIrYqLmRosfGSfJqK02qHp2Enwr/l92bsVy8QzhOh2AF+of9Fz75q6QYo10zRvvUzHME KkHQ== 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=j9/aMzcREZCZfWUE6PP8jcTImhxM6yTyDPfu0Ge5pvc=; b=HMe3FRUTrUD9kgwPH35huF14hiz85tqpPgWLehYygh9ud3AmuXXd0v24JQbokiemnp OUQ6jO3rlbQwTX36MNSZa40AoEWE47qckjz4GMksuxqNY/4TWEX2hIjNCV+Ia+uU0Ery OYq9Gsirtwg649cZfWmDBx/QvzXB7v47cG/fWDwRu3o3USDbQFHIuNPEDtn144jYrrWW eVvLHDHBwLNoDE8mt0LQUUdYx3DvKwBSbkMTMvalR5W3LDFwVKOmgwa5WiN5xDgxMa4x oKpefa3XNpe1Am7Ad9gy99YpP/UTReOc6Voo+qmwFccLNxdtAn7VkRW5eLiu3g76CsGx UG3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aKPapCFf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay1si7675924jab.68.2021.08.14.23.29.43; Sat, 14 Aug 2021 23:29:55 -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=@kernel.org header.s=k20201202 header.b=aKPapCFf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233848AbhHOG3e (ORCPT + 99 others); Sun, 15 Aug 2021 02:29:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:43464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231238AbhHOG3d (ORCPT ); Sun, 15 Aug 2021 02:29:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DCB186103D; Sun, 15 Aug 2021 06:29:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629008944; bh=5piigzE2Zjp/3ag1ZUnrg1kpYXWABsKOC0eZ9QCaI4E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aKPapCFfWjenDKFSlMvbWmQYnPJ/XNu6Uiegphet6c7gJhCdoOf6m9DaNXguSJCe+ OH3aAix4Wow5To7SKmJ3d4g6hZtroLK6+CwurF9ZKkPocx22UfeGR0uoRJDlmgSav7 W7XeeAOE7xWPxWsWqHedLR6s+7EW+zjZvMlbA5p+ge0wNZA+hf3d9mbvyCXEfJIK6L 4Iag7dh7akrQvIrl3cveocgRAMyJkRo0/M6XPt5Q4TU3e2qJtGJmE+/544FiewWBRh BzpItjADi9qe8Sp6Bed6WoZ6UWGwrGunpGgyT2IsYBADugcxX7n42aGf5xOhX5cUmH Cob39GcxlZHzg== Date: Sun, 15 Aug 2021 09:28:57 +0300 From: Mike Rapoport To: Matthew Wilcox 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 Sat, Aug 14, 2021 at 05:05:44AM +0100, Matthew Wilcox wrote: > 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. > */ I like it. -- Sincerely yours, Mike.