From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB048C433F5 for ; Sun, 8 May 2022 19:13:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229522AbiEHTRo (ORCPT ); Sun, 8 May 2022 15:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378353AbiEHSlG (ORCPT ); Sun, 8 May 2022 14:41:06 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A02FDF40 for ; Sun, 8 May 2022 11:37:15 -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=3Yca6/1iQCzUNc+slQEtIcY0dlO1SVym3T5ELS/57HY=; b=Ht8JyGmMQa8lUETpZsHeqFsQ6o +mJN5bQJ4WlbKtHkDT0tS5A8FlOD5YmQzvYIDg0f+qmnD/u7u07hMEO1Xpm/IWnwuu1Bx3XFCsowt 3fxF6qd8laB+wxgdiOxEd1fRR3rR7AZfyHc1weW3aIZ0V1nRdcuts3EwFLi02QCfM6ay7ouf9VTmi 1ve4JxNOPS8HYyHXtGNJOMeE2zkf7lo4awdALVtrvVK55AEzbVeYPmHLimN9UMdENnm4nmQdVG339 O7b1XIJbfSkcDAVTKAKz4vlxHSzne4iCF+HSUbgepWim8ltQyL/V9UwPUy77IQxIQrvxrPP0OYD4t 2T9q790Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nnlmI-002j6N-OR; Sun, 08 May 2022 18:37:10 +0000 Date: Sun, 8 May 2022 19:37:10 +0100 From: Matthew Wilcox To: Christoph Hellwig Cc: linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 32/69] buffer: Rewrite nobh_truncate_page() to use folios Message-ID: References: <20220429172556.3011843-1-willy@infradead.org> <20220429172556.3011843-33-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-fsdevel@vger.kernel.org On Tue, May 03, 2022 at 07:41:24AM -0700, Christoph Hellwig wrote: > The changes looks good: > > Reviewed-by: Christoph Hellwig > > But I wonder if we shouldn't really just drop these nobh helpers > entirely. They were added to save lowmem on highmem systems with a lot > of highmem, but I really don't think we should continue optimizaing for > that. They certainly don't have a lot of users: $ git grep -w nobh_truncate_page fs/buffer.c:int nobh_truncate_page(struct address_space *mapping, fs/buffer.c:EXPORT_SYMBOL(nobh_truncate_page); fs/ext2/inode.c: error = nobh_truncate_page(inode->i_mapping, fs/jfs/inode.c: nobh_truncate_page(ip->i_mapping, ip->i_size, jfs_get_block); include/linux/buffer_head.h:int nobh_truncate_page(struct address_space *, loff_t, get_block_t *); So just two for this helper. The other nobh_ helpers are in a similar position (just ext2 and jfs). I had a quick look at converting jfs to iomap, and that seems quite reasonable. So ... once ext2 is converted to iomap, all the nobh helpers can go away as being unused?