Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4433949pxv; Tue, 20 Jul 2021 03:47:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzehTETgP3A85ANzyu+Wey7grGKBvNNji2/ji/PualmoV4c1NNYpCMGGMBxUDFqvxFNcSW3 X-Received: by 2002:a05:6602:228d:: with SMTP id d13mr18629334iod.36.1626778064116; Tue, 20 Jul 2021 03:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626778064; cv=none; d=google.com; s=arc-20160816; b=uGkaUQlycVlf4M3z1H0XNAWNMXVwB7vLyWugSr/2JS8j8VPNaqsOdrjqepE4QMURuv XcAY3WMrh1mLQ2n/B3ukMRGPXB2FB61aJADyiZ/9pOudlGlPVR1tqcG/1GOLsg2edqQU qUo5sM6/4LLdqpbIgPRaqS01aN+L1tTMN8/S5F0k/M02JduRE1v1/WSy1SNFfZmFOPAi KXwfjc7x90rkXn9X5L5kPvI+GyrV4K2ebo9Jv0mHrL/eHJ73IuY6/pbpft17BXzfte8q RnsdZK/U9BkbaFCePLxC/4he4cxOTprQudKpTJqJtX9ltEiCdb50HKkG1oO5ZYS4U+sM IGAA== 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=l+osHzH6g8q0oOB/HnXfGgE1OF/szHH1IwJJHvzcjus=; b=lLapoRk67ApY5JWLNNIJrN4DJ17b0QW60gCo3ke9g4UoPvnAFw8PvFBv8rgapzFWEv mIXjhNpa57hV7mJI6ZcoisjBzVO1AshI+ECjg2G0KY9Pt+CEWE8sdbUQptLMwR0y3xr2 doqRg1VCY6a8KwuY42Duy5luSZ3ZNRR1p0UJfgGObsRDRwDFY1ythGiD6lcGAUsaO+2b oYxpcr9LXB+NZA3w8ajLZqmpkf5bdNEs6D0Kn+WwVIWsaAhtpT5EYv0GEO7V0eBsErVw ayXackt7RT/9+rbY3WlqBIQlod4Wgorg1NooHeyY30eURRSR98O+wXfjlZyTPwweXBsJ 2sqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IWL3FNMk; 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 y9si14386973ilv.11.2021.07.20.03.47.32; Tue, 20 Jul 2021 03:47:44 -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=IWL3FNMk; 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 S237691AbhGTKFt (ORCPT + 99 others); Tue, 20 Jul 2021 06:05:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:33882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237097AbhGTKBO (ORCPT ); Tue, 20 Jul 2021 06:01:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 82F0B61209; Tue, 20 Jul 2021 10:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626777712; bh=ACwdOqNdcSDdPdwZhzCQApak7JmD7gYgFfks/TLhApY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IWL3FNMkM9GiZqbX9zrwE4G/1zDoTqP+xPOohrXEvn/1h2/ZOY5vtwLIxJxdYYtbM cMoqTB/ra7OrmN2m1Mm6DXZgbU5hQ/avOJxKGkjDnUxWoC0bFdcZkFg6AEmcwInZyU 4zC0ZIXo+G+GUaR0ANI8RE7n7LfmIm6IzUqpHnI3nAIhiCHzEPVMakOwUIafKYs/58 56PJM9VkECjz8il5rcYoEC8ZrM/ZGN1AFfRjOPo+wXSZWaCW4qK5RPpwGgIouvjTur 9mnoJImmuT6UC8nXt5UHHK2hkxJmSHE+05Wpayh06QlfGCRRN21aDSN+0HI88s/FC7 U1qivMsAGFgaQ== Date: Tue, 20 Jul 2021 13:41:45 +0300 From: Mike Rapoport To: "Matthew Wilcox (Oracle)" Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Zi Yan , Christoph Hellwig , Jeff Layton , "Kirill A . Shutemov" , Vlastimil Babka , William Kucharski , David Howells Subject: Re: [PATCH v14 008/138] mm: Add folio_get() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-9-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715033704.692967-9-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 04:34:54AM +0100, Matthew Wilcox (Oracle) wrote: > If we know we have a folio, we can call folio_get() instead > of get_page() and save the overhead of calling compound_head(). > No change to generated code. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Zi Yan > Reviewed-by: Christoph Hellwig > Acked-by: Jeff Layton > Acked-by: Kirill A. Shutemov > Acked-by: Vlastimil Babka > Reviewed-by: William Kucharski > Reviewed-by: David Howells > --- > include/linux/mm.h | 26 +++++++++++++++++--------- > 1 file changed, 17 insertions(+), 9 deletions(-) Acked-by: Mike Rapoport