From patchwork Mon May 2 05:41:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 12833823 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 BDC3DC433EF for ; Mon, 2 May 2022 05:42:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357760AbiEBFpd (ORCPT ); Mon, 2 May 2022 01:45:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbiEBFpd (ORCPT ); Mon, 2 May 2022 01:45:33 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A643635847; Sun, 1 May 2022 22:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=+dTUFiPSgcPyKn27SG2SzO7pIAPQqql66xRPG3Hmnd0=; b=ZS+Jl8aHtWueRkdYl6tmmnK5X2 glIsYRJy1nHd7JNVkjdoNq4qALnvkQ2hS1bqXO+rM4QrZP7JnyVz2MFEzBHL1cLtOfWRMgDYRRFQm hVmmSUrVBfkM10IqkO+704tPUauNTMZcevGv6XfYRfZHuKFJVOAzsERzgVC2FZE3woLduVBWNK1iP Kn7lGVu2eUJ+w8PjsBl0i7POFQ7VqO0x31MNEcTMIGAnrR+cmyVz+0IDlOBdQuZhz/kgU/hEZyC7w YV7rA++Ch28bz7UENEAMYAQDe/1XVoij+v4JIOlDjF4yfn3MTZLjhuzGe7mBpVghK9eOpZ1KwvNia dKMv4FDQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlOot-00EYzz-NC; Mon, 02 May 2022 05:42:03 +0000 From: "Matthew Wilcox (Oracle)" To: linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , cluster-devel@redhat.com, linux-mtd@lists.infradead.org, linux-nfs@vger.kernel.org Subject: [PATCH 0/3] Unify filler_t and read_folio Date: Mon, 2 May 2022 06:41:56 +0100 Message-Id: <20220502054159.3471078-1-willy@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org I realised there was no good reason for any of the three filesystems which actually use read_cache_page() to pass in something that wasn't a struct file pointer. Indeed, it made each of them more complex. These aren't filesystems I test regularly, so please scrutinise carefully. This is on top of the read_folio() patchset that I posted recently and can be found at git://git.infradead.org/users/willy/pagecache.git for-next Matthew Wilcox (Oracle) (3): jffs2: Pass the file pointer to jffs2_do_readpage_unlock() nfs: Pass the file pointer to nfs_symlink_filler() fs: Change the type of filler_t fs/gfs2/aops.c | 29 +++++++++++------------------ fs/jffs2/file.c | 9 ++++----- fs/jffs2/gc.c | 2 +- fs/jffs2/os-linux.h | 2 +- fs/nfs/symlink.c | 16 ++++++++-------- include/linux/pagemap.h | 6 +++--- mm/filemap.c | 40 ++++++++++++++++++++-------------------- 7 files changed, 48 insertions(+), 56 deletions(-)