Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1396351pxy; Sun, 15 Aug 2021 20:04:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytRXLKmpEwhTfkjXA58dBWEsQRchRuE6/ppEFl9mZj+eaVnkyEsoqOZ2a1i6IlQASpUqBQ X-Received: by 2002:a6b:440d:: with SMTP id r13mr11097440ioa.1.1629083072914; Sun, 15 Aug 2021 20:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629083072; cv=none; d=google.com; s=arc-20160816; b=tuoBCtVi/cfMn+hsFa8Mj3qwoHgoCAS4g5xTGfo+UHRDFL9NC+RHFY1PdP2hF9ml/O hA6KAiFYestTeRX5E5bqpm1+QuGH+NTmvo5kR2ajnlDVzicE/rhnZdiSEapFgJcPvCF7 DCxszoruxegc877vYJlqCf7HUmut0mOWscCmUg3oiLkf19b5tMUMU/cLxJALpqphYx4q r7rCeq94b3P5kMcDcD8XlY9clPf7Y69tB+Bt6smUFKJPYMGq+Vu+eljwOGdj0SPeszj4 DRm3MRg8gE8Os9VpdP+a/mcTpMGm5iXW0dl8YWfWouhO0qYpFX64/qOQw535uD23upJ5 d+8A== 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=sgTeGggd6fSczx52WtMtKzxx473Mj1eHW70jX24joX8=; b=OmMU4nre1/vyxX32nldPpCLQGXTM935C+pnV4UcLOG5nLltfJ3yDK0Usy2E+jE6HEq 9P4PiXfNIWJYPLXFfVfxs2zXpFMmI49BWXsp/mu6HoiD5cNnf/rIfC6Pwz79vKX0dp0Q aVhJ2Rg8GhvemCd4RQgWFo5v61o1IGprichk6oGlabzOnnxUEgJdCpQbUwBF29pVjW0K RiRwNKJ4k3v9W435a89lLUNXZdctOluIgci2rVlGPqcWoHW3PtMsmDzghOKCpIJ3kume Eo14lg3I85uMYHyUvAWANl53FaXRB2KAlIAA+MrW5d7Fpn9Td7qJPTM/AgrMSw73sCEh q37g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=h8xL57ZM; 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 d131si15390554iog.11.2021.08.15.20.04.21; Sun, 15 Aug 2021 20:04:32 -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=h8xL57ZM; 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 S231789AbhHPDD5 (ORCPT + 99 others); Sun, 15 Aug 2021 23:03:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231401AbhHPDDy (ORCPT ); Sun, 15 Aug 2021 23:03:54 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD6AEC061764; Sun, 15 Aug 2021 20:03:23 -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=sgTeGggd6fSczx52WtMtKzxx473Mj1eHW70jX24joX8=; b=h8xL57ZMQftS7cRG+UsZycv7aT ircyrqajjyn4sB/0lFCcuF6C0VFrsbnwoctiiyrIgZbiio4nFnhDY15xgjIZxwE7pAUAyPNCfEoQk EbWtajs63ibGia+h+hTB1+TjzwO68arEatNVoloEC0eOI3xc2hkRYGdXASTPIHiT8NFeBJEc405Th 4e0DSljoUFCUK9xlACucn50K0CA35cUQ9gdNqO01ShRcuKG80GDzHCKCgXhRTjpuV6vgzQKYyh6Tw CHDMdkzP52QHfmYbB8PQWXxjwwcHsWw5W3ghZiggaw3JlUou1Dj+KCiWiFjkEAoatnaCTmIPeI0WK b/P6Qsdw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFStp-000tom-LL; Mon, 16 Aug 2021 03:03:00 +0000 Date: Mon, 16 Aug 2021 04:02:53 +0100 From: Matthew Wilcox To: David Howells Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v14 088/138] mm/filemap: Add filemap_get_folio Message-ID: References: <20210715033704.692967-89-willy@infradead.org> <20210715033704.692967-1-willy@infradead.org> <1815135.1628633133@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1815135.1628633133@warthog.procyon.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 11:05:33PM +0100, David Howells wrote: > Matthew Wilcox (Oracle) wrote: > > > filemap_get_folio() is a replacement for find_get_page(). > > Turn pagecache_get_page() into a wrapper around __filemap_get_folio(). > > Remove find_lock_head() as this use case is now covered by > > filemap_get_folio(). > > > > Reduces overall kernel size by 209 bytes. __filemap_get_folio() is > > 316 bytes shorter than pagecache_get_page() was, but the new > > pagecache_get_page() is 99 bytes > > longer, one presumes. In total -- the old pagecache_get_page() turns into __filemap_get_folio(), but the wrapper is 99 bytes in size. Added the word "wrapper" to make this clearer.