Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5334788pxv; Wed, 21 Jul 2021 02:59:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4SR5PW03VecvoI55OWYoxmnv0BPgplXaKOxwDneehp9spfjXDhX65Sx6rqQBygtoxhfNZ X-Received: by 2002:a05:6e02:c87:: with SMTP id b7mr23935308ile.210.1626861592595; Wed, 21 Jul 2021 02:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626861592; cv=none; d=google.com; s=arc-20160816; b=t4DSZM6xY6u55fX3YG9pBX3+SZKr3vKZ7eJPp1uBwVChizZhRy+TRYuk/dtc3ZZk+Z Zhv1QSPyZkITEhUfdmTxzZGWxi+qFo6/Dpej2Ekuc+USEGovDe+N+nkahKsEDYe+hNHw 56Hhx58yqkSgcIej1saudtKurMQXOdi8bR9sNbz/C2Us9RuY3pVmXjCOxwV2t7WruvYe hiQIyPfdcKFzH3XgZ6AtRwq4yA2zkdRnhUEiecWR3iYrwWmoLFWadZQyB2OcMCk0+1Sm B95u+/Di0pCUzHT/j2p69Y0Bxg/pXe4RSR2zOCbWHmh/7OywPDMNDF5xYBiPUU6h5nfl cCiQ== 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=2OUoxSs+OYIa9WUSXh/lfBTJjwYGDwbykAgD2189Pvs=; b=lxqiLISlax1D0f8VjEp/4zp981nbwwcxrMOdYsEWId9UYa1utCncS0J2zS/0YvNp6y ivmc38Ajm0cwVo+QMLCuEF7M1ZX4aV6k0RMiS13LOOOXeAUXz43bg/2jeKM/8/U9KDuR 9+xnCvz2SyBM7cAwhLUr3OBK3gtVTT7TtUU1OPzal0fMX5hEXLf5wUmCSb9Z3Je3C9Ee m1ylBsdcF58ffn+QM/6Z98qhKNzhosT/6fSZxNo4r9tc7C8o5rVDgBeKUWkYg1Vc8zdr 7KQU2ljaHg7mZ6405BEfC8o4NjM/xO0l0oe4aG55xIQYPwBleD9OLU4xXPt55AVQEEny c+cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cgUPz7vG; 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 l6si14577758ilg.44.2021.07.21.02.59.39; Wed, 21 Jul 2021 02:59:52 -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=cgUPz7vG; 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 S237603AbhGUJIk (ORCPT + 99 others); Wed, 21 Jul 2021 05:08:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:39974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237494AbhGUJFN (ORCPT ); Wed, 21 Jul 2021 05:05:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A76AA6120E; Wed, 21 Jul 2021 09:45:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626860713; bh=NPPjP0YI9hcbn/DRxmERl+FeN/dkyYWqw8VdjUAOmnU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cgUPz7vGwqoyO+MN5GsqsX8C1w4JsiELjW/7dob09Bw0MtU0Yi9suw6hbSMiAph20 wBLXVd1shBHHu4FHzEMl0PKAwno6y0QQYcp+Fgqf7oD+Ld1YwjELYevulsKtEiaP8w 1/BqhK4UuDiMxZSv0/QRLIJs6QThvy9XVrSVbjNQGDS+luyKjOZOE5FrKxgCJeIHeD BQuk1Lc4rgfel0DMnVEVT+pO6UP24oPkx8CbPSbhzL48EDxwyUclyXmqsUOa1U2AFb AQeyoPakejg03lXS4DAvDKZB0NeamUnts0efpEAToEWeG3ssJDzSLtrVvxGmVG9hNo pf8nsitoR8F5g== Date: Wed, 21 Jul 2021 12:45:07 +0300 From: Mike Rapoport To: "Matthew Wilcox (Oracle)" Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v14 045/138] mm/memcg: Add folio_memcg_lock() and folio_memcg_unlock() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-46-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715033704.692967-46-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 04:35:31AM +0100, Matthew Wilcox (Oracle) wrote: > These are the folio equivalents of lock_page_memcg() and > unlock_page_memcg(). > > lock_page_memcg() and unlock_page_memcg() have too many callers to be > easily replaced in a single patch, so reimplement them as wrappers for > now to be cleaned up later when enough callers have been converted to > use folios. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig > --- > include/linux/memcontrol.h | 10 +++++++++ > mm/memcontrol.c | 45 ++++++++++++++++++++++++-------------- > 2 files changed, 39 insertions(+), 16 deletions(-) Acked-by: Mike Rapoport