Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7447574rwi; Mon, 24 Oct 2022 15:00:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM55Dk7ysQvMhaAbP7re5tj8cywdOH99RJKkuLpMzqLAmxBFKBJTAj9inXPp+0d+MjavF57k X-Received: by 2002:a17:907:3ea9:b0:78d:fdf0:88fe with SMTP id hs41-20020a1709073ea900b0078dfdf088femr30626818ejc.667.1666648823409; Mon, 24 Oct 2022 15:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666648823; cv=none; d=google.com; s=arc-20160816; b=Fjs8YP3o+1aQbB8viDBKaV/7yLCG1+zprjF8Xls1Dt2Yg00O0ta+4LSsVAzLu3zbPM 60uwQjzlq47QqZsK19XJC3BotCW9J6NRZkptaibZZ6RBfZPGH2ZTocEjuDiasS829UFe qkCGDFCUCxRSC4UJo+CMyZhWZTU4GoPOHMmeBZaJs3hLypx/ieJV3YU07ISzfgKuiVlq 8+jAOC/EG7pMkYmP1+Bac1Hj7pkyTnCjMM1T9NT84kkX59EF6XR1P8AaPUjb5vYnRAYS tiq5mPpGj9XW5uLpwsRDGo6osinK1E2nvtZtgKWO03ZO9qR+AzgzlqgHZ2KvD8gi1NjA cAiw== 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=7MsR0R1NbSyB2Djzw/hFUhA/+5S6z5HyXDOZO3eVnQg=; b=kJBATOUAcrNc9Bx+cg41lrjoD2Ut8nURHkp+joUDlDldCok+E05GlRkfi5NBp9pzfg 84SV/MbdnnZpZcybll9Sacz8sgdavYVUCO9i0ESqL12vhDjr59bgtMgRpjSZfAjC7Ahr s4wvkL33NZBaexKTSh2pf8YRQdhcxpLmh5fs4z3b2a278npAaoL7g0ZSCKLBj3RZeBIp MNqB0NwoSMFmvOuEP6XrNXNfYP4pHX6iwStQhf9Qh9xVWpK7G/rDsXn8Fv9ksAk8ODjJ Aa6t0UG5Uk4k6Ved2mSFlS7tWU3oiOG2xETcrNbbaEMTBeG0ACuVtNGz3yRgxGbiHLMO PSjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Sz5j+RyA; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd21-20020a1709076e1500b0077e9417b5a7si953701ejc.938.2022.10.24.14.59.57; Mon, 24 Oct 2022 15:00:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Sz5j+RyA; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230360AbiJXVyx (ORCPT + 99 others); Mon, 24 Oct 2022 17:54:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231830AbiJXVyW (ORCPT ); Mon, 24 Oct 2022 17:54:22 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C1592F2732; Mon, 24 Oct 2022 13:08: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=7MsR0R1NbSyB2Djzw/hFUhA/+5S6z5HyXDOZO3eVnQg=; b=Sz5j+RyAMJMG8UN49CI/nYQsRM 4uctA+lYIXec8+kZbgkhU9sfzm2Y04hWo+tPCEQTJyx3zRaNr9Wd20f0mK3a2nGhmAnFPqvsQD/k1 7mQnl5ZhzhFRoUDkH0U9c9iTvIWHP7suVXqBsD5AMkabioENS46bynM5C22QMostYhwbZ03GBCt64 C6ho4ykMx3e35M96kmpJGQH3OjDWH4lKrS9MHkdnK3z0AT1XCBM64Ux2LafoYepJsAbGzL+W6zQpV iWZYCZcRkajtC2dbalkjT9RGPcA20dSCql/hbVwpp6dr8//HsLsLv88DwGLSugrvIDPH/UYXKAClR wLAo/S/g==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1on3ir-00FiEx-R3; Mon, 24 Oct 2022 20:06:57 +0000 Date: Mon, 24 Oct 2022 21:06:57 +0100 From: Matthew Wilcox To: "Vishal Moola (Oracle)" Cc: linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-nilfs@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3 03/23] filemap: Convert __filemap_fdatawait_range() to use filemap_get_folios_tag() Message-ID: References: <20221017202451.4951-1-vishal.moola@gmail.com> <20221017202451.4951-4-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221017202451.4951-4-vishal.moola@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Oct 17, 2022 at 01:24:31PM -0700, Vishal Moola (Oracle) wrote: > Converted function to use folios. This is in preparation for the removal > of find_get_pages_range_tag(). Yes, it is, but this patch also has some nice advantages of its own: - Removes a call to wait_on_page_writeback(), which removes a call to compound_head() - Removes a call to ClearPageError(), which removes another call to compound_head() - Removes a call to pagevec_release(), which will eventually remove a third call to compound_head() (it doesn't today, but one day ...) So you can definitely say that it removes 50 bytes of text and two calls to compound_head(). And that way, this patch justifies its existance by itself ;-) > Signed-off-by: Vishal Moola (Oracle) Reviewed-by: Matthew Wilcox (Oracle)