Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2221640rwd; Fri, 19 May 2023 02:41:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Oy67eGGPt4rSGdIZqAVdh7+PE1mtDsNFSYlz9u7bRf8MRTHLaM2zi3av9xvCN4ZVXDz2x X-Received: by 2002:a05:6a20:158a:b0:100:c3fe:a653 with SMTP id h10-20020a056a20158a00b00100c3fea653mr2276489pzj.29.1684489285848; Fri, 19 May 2023 02:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684489285; cv=none; d=google.com; s=arc-20160816; b=awT6eeU5TdJj3cZDgAC7QTdo+g0TE9Efz854C+xcARilbzW2xQMAiHkzRB/ZpMyhjd exfhyMnN17G4Efy7j7RxQpqTkHsoc5oRyNvVU1aF7hs82QngtmWXB4WQzFbo9mQD+/WN kfcmEkqNVff6kyUV+2YCcqQdaqm/hgtO/ac1d1+eLaG5QzwCSDDj4+a1pK4puCgqcklK wFRhVrkdE83P1qzc3vwISXs8YwcOPzPTZi+jnEGY+H3Mx7QHL++zpHP94rdqIckKOHS2 V0dqV7huotTXeerfPHwz25OfExgWfIVqxMPZKiEiGCXgxo2mocPyXyAb/KmFukqCMLNO xlEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=b3wyyoN4jHO/Zsak1kxh+5wE+B9r8QbYeNrqiPeGC/c=; b=Y8w+f09qXbuDZiYkNS9ESw87imC9tNyiRP/qTztZXTeO/IqQp4Rl7nyYBbWGApoeql 8fxUHNZLbJOmD3XY0QShGHvNRg17EXQ5EfU4vaeLGqvXaqjKEj0XvhEKr3bVa+vmDQw+ zs0Lc6Gyx3Xabzaj9+ga+NXyMjUFjAobaiMjtRRV1DpyqD8GHIkhY7v0ZXZDRSoF37wZ JPX0kwMMCVOs71sj19ldABOxur/O+L0bM2OIy1pFwGQ8MYGrZSOfoyYRH0Zh9x0Mv6+y sa5dLoMwUGp9m1J66heTYwNB1oic1CGEFsspjOrRJYFCf2FyqRovV3ypJomXbdrBMQC8 1sIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4xTOmJL4; 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 n12-20020a63b44c000000b0050726756edesi3332111pgu.76.2023.05.19.02.41.09; Fri, 19 May 2023 02:41:25 -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=bombadil.20210309 header.b=4xTOmJL4; 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 S231757AbjESJhN (ORCPT + 99 others); Fri, 19 May 2023 05:37:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231694AbjESJg6 (ORCPT ); Fri, 19 May 2023 05:36:58 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDFDA1985; Fri, 19 May 2023 02:36:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=b3wyyoN4jHO/Zsak1kxh+5wE+B9r8QbYeNrqiPeGC/c=; b=4xTOmJL4SZkwf23SC5mh6Q9d6w 8QH+KDswZ+2G1P8ZxhVXqL1acWhwalcFL5gjcp3rESRLiy81SrWQdPrUu152ypZAPtBDcl6X36MA4 vAst5eyD9qhG/KfmnSBIFG+NF9yhRKBBRmZNaI8vIy17R3fThdmR69/MqckQ4qgUCNeZGKzTMMcVz 2TqWKRcmurv0ffpUIKtLL9SAnCsvVJYqK3Vxy9oIZEp1JM7CCl6kyRl1OEtwAtY0TDaY3+gbGMQ56 XaESPbY0EvWVD3HutDMlMkv/S0olqmVZSZKfI3fMnDixVDyZ4fUPizXA+cgLmqQiMzDCVIdTZlqTA VDm5obdg==; Received: from [2001:4bb8:188:3dd5:e8d0:68bb:e5be:210a] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pzwWC-00FjZy-2X; Fri, 19 May 2023 09:35:25 +0000 From: Christoph Hellwig To: Matthew Wilcox Cc: Jens Axboe , Xiubo Li , Ilya Dryomov , Alexander Viro , Christian Brauner , "Theodore Ts'o" , Jaegeuk Kim , Chao Yu , Miklos Szeredi , Andreas Gruenbacher , "Darrick J. Wong" , Trond Myklebust , Anna Schumaker , Damien Le Moal , Andrew Morton , linux-block@vger.kernel.org, ceph-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net (open list:F2FS FILE SYSTEM), cluster-devel@redhat.com, linux-xfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-mm@kvack.org Subject: cleanup the filemap / direct I/O interaction Date: Fri, 19 May 2023 11:35:08 +0200 Message-Id: <20230519093521.133226-1-hch@lst.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hi all, this series cleans up some of the generic write helper calling conventions and the page cache writeback / invalidation for direct I/O. This is a spinoff from the no-bufferhead kernel project, for while we'll want to an use iomap based buffered write path in the block layer. diffstat: block/fops.c | 18 ---- fs/ceph/file.c | 6 - fs/direct-io.c | 10 -- fs/ext4/file.c | 12 --- fs/f2fs/file.c | 3 fs/fuse/file.c | 47 ++---------- fs/gfs2/file.c | 7 - fs/iomap/buffered-io.c | 12 ++- fs/iomap/direct-io.c | 88 ++++++++-------------- fs/libfs.c | 36 +++++++++ fs/nfs/file.c | 6 - fs/xfs/xfs_file.c | 7 - fs/zonefs/file.c | 4 - include/linux/fs.h | 7 - include/linux/pagemap.h | 4 + mm/filemap.c | 184 +++++++++++++++++++++--------------------------- 16 files changed, 190 insertions(+), 261 deletions(-)