Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3664197rwd; Mon, 22 May 2023 18:20:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5O+TA1Z8+n0B76CEsw5YpQKr63gXJBVQ1bI1XspcjfIDqCxKDu3I6jlL4cLL+lW1tugO8/ X-Received: by 2002:a17:90a:2b49:b0:255:70e4:ad25 with SMTP id y9-20020a17090a2b4900b0025570e4ad25mr4633398pjc.15.1684804845472; Mon, 22 May 2023 18:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684804845; cv=none; d=google.com; s=arc-20160816; b=Y2CLW+pU+ff+HsA6cH3056XycZYP/VnoC7UR6ztOTQb4qCtJgyVzq/+2GxsJ4R5//w bBpal0m44ZiwqhIPEzBXFJhrwVutI52o1DQrcMtjDHYxuujbY5WovUY2FnO/BM+l8sZV fJA3qIHBbuTcUZ4OJmRStgBdlkkDVWxJp4arZwKxaceARA3jRytOol1bnpgHmQLRx2IZ oQoh/rpwW0oa7QogYSpZZ5B4XzAlSUfyTWtTi0wmb340Px5sjqIae7mYkIlNX/T10XhS 4AYfCEVcjx9K/kYE1zXqdufMMK+5Aaw6HOGL25R2IcWdZ5sPBpu615WZzV4RNuzLBHO1 eSAw== 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=S9kEBlrM2mXZCJZviNHwocMuJjhBpx9Jd+tPaUpbpJo=; b=VwNgxOrX0w9FCeJNrNTy9RkolEhy1Fu0VWMyAPHyNQYUMyQr2AKCcEkr+2AZkDG0RD r6HweXio0UjupGB7yQ1NtFLoViKIYKV9p/1RSF6eXW0fXQjyk3FCsub/D0geXhRgt3se fsnztZ8inpPFDW/5ZLcS3/svRVpGQMwa6VDW7r0RgUh0syAK97DR07L0QFkIxzDTimoM ePXB0KkiZGS35AjyHMnl3fNj7OlORH9WfuyDtBauQW0HwTItzY4hDvsmGGiv+KgxrmVE RTLryDgCNxySG400bnJgygYwKarF8tm4TROvhkxeUtDB2fiQswBlV4DYrgDgPcdGPxdC TYOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XA9zKICM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y73-20020a638a4c000000b005307b843a98si5677957pgd.53.2023.05.22.18.20.30; Mon, 22 May 2023 18:20:45 -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=@kernel.org header.s=k20201202 header.b=XA9zKICM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233535AbjEWBMa (ORCPT + 99 others); Mon, 22 May 2023 21:12:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231812AbjEWBM2 (ORCPT ); Mon, 22 May 2023 21:12:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E11308E; Mon, 22 May 2023 18:12:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 65C5962D60; Tue, 23 May 2023 01:12:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4572C433EF; Tue, 23 May 2023 01:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684804346; bh=ZAzh2JNRCsiTX6v9YnyrLbWHKhYqrabrMaOhNbQDKt0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XA9zKICML07FeJjfGnwZEsKdRfAesSdvaaHFlpSZu8WKwtPS/f0ia/t7cGRGTyNg8 rT47MwwEolWaHM51ZumONutB3+Qf5F12m8Z1kVmc2gMNJAka7ZrHhQv+ohAfxmjULN /2aDsxU2KzjD+vNRj/AiuZQD9F5M3i7Ev7sTWBz1AKeTf5KddszyQ6/YCnwWe/h4U7 jrL//iKf2/JOVhxfT/Blv1VumtTkmowtNzBwA7CUgcLjxweF6oJXfG2AyYi9pNXgqH jP3o/0cJLs+Dt54A0XsaAGrmEVutP7KfJXFX8dB/TIRPNdcNKc2IgCreYwgPmGaNnn TdjhaErmpweVA== Date: Mon, 22 May 2023 18:12:26 -0700 From: "Darrick J. Wong" To: Christoph Hellwig Cc: Matthew Wilcox , Jens Axboe , Xiubo Li , Ilya Dryomov , Alexander Viro , Christian Brauner , Theodore Ts'o , Jaegeuk Kim , Chao Yu , Miklos Szeredi , Andreas Gruenbacher , 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, "open list:F2FS FILE SYSTEM" , cluster-devel@redhat.com, linux-xfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-mm@kvack.org Subject: Re: cleanup the filemap / direct I/O interaction Message-ID: <20230523011226.GF11642@frogsfrogsfrogs> References: <20230519093521.133226-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230519093521.133226-1-hch@lst.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri, May 19, 2023 at 11:35:08AM +0200, Christoph Hellwig wrote: > 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. Heh. For patches 3 and 8, I wonder if you could just get rid of current->backing_dev_info? For patches 2, 4-6, and 10: Acked-by: Darrick J. Wong For patches 1, 7, and 9: Reviewed-by: Darrick J. Wong The fuse patches I have no idea about. :/ --D > 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(-)