Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1076584rdf; Wed, 22 Nov 2023 05:11:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6A+I+aNAlffdF2M7beT+uY6duW0UNHZdMtzAgT1yEdGCSqCLcE3A9YfVU6b2MyeXKMrpF X-Received: by 2002:aca:2418:0:b0:3a9:ea90:5901 with SMTP id n24-20020aca2418000000b003a9ea905901mr2125412oic.56.1700658696946; Wed, 22 Nov 2023 05:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700658696; cv=none; d=google.com; s=arc-20160816; b=K0K0HSo7s899jydRi6a6LjdoRO9adcEDgLXW3gcgAIFi/ck0kC7tt/kq/qQUx4869R mmxwIpgbmWdYrtUQNz2tVH5DQK7IxV+vbuVyiA0wsqjVE9ZYxTEsZdqEwb4PRb0yaoco 5y4/z2uyhCJsL0UXLpKuD/m+UyA/CrSlYPm5gtYQhxaE6H7v6FrGBNAXFUwdcJ7nb0KT aNt3N5DNTj44XvE+SauenCJqkNQQHup1jggapSHTdReAaNBT87Q8aKNEOHaFnb2w5/pv s9tOe02WWpJAMszSLIpJQ4clbBtFAI0uvT3LRqSOFgK0AWDvNZmMWAs8Ujl1YjS7neuI Enhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=O9oHYEGAsBYsLtvmTaKA7FT2Xc3nhsN3tRuqsnNUyXw=; fh=fhzP19XMBs+bkEZym62jt+sHZZFbzEIhvpgqjgpnR+U=; b=Gn+709wMCmlNtOGJfUsQ9UHGNqrnDww48rGIpvdOPn5l8DeMsGc3BsuT3XTMJj0Q4h mqubAw7fY+WrLj6GbVIauaBsnDAe53UFniuwNWnd8ZfgSIkcgoR7lFECfxLfoly4IgZi bB+/DDN1tWnoV89Tq/Yc3EtBrD+KvvQE1F51MYy5zuRePF4khBF2KVsVY6fd2wM/4I5F b2lDDgXV+ZxMs2y+x++a9a9OkuCv0cbANSZInneHfan3RAabswAagaTiVhaZZAVbLJy2 d600Sj6m2oaikstwv0lUobLQfl1xdzsvcJOvYwJ43vw4r2Qq/tXg54cX9uZ20n0ISuxG bfFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=v86cmPCG; spf=pass (google.com: domain of linux-ext4+bounces-82-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-82-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j2-20020a634a42000000b005b95fbb1745si12241484pgl.562.2023.11.22.05.11.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 05:11:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-82-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=v86cmPCG; spf=pass (google.com: domain of linux-ext4+bounces-82-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-82-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5CA4FB20DB0 for ; Wed, 22 Nov 2023 13:11:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2A0C4D588; Wed, 22 Nov 2023 13:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="v86cmPCG" X-Original-To: linux-ext4@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD65E193; Wed, 22 Nov 2023 05:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=O9oHYEGAsBYsLtvmTaKA7FT2Xc3nhsN3tRuqsnNUyXw=; b=v86cmPCGyJdVriNiyDRPZ8/Nec qkyMDRWSfoiMNMtTWuHka7jqm82Mwfk+oYaoZkqEOfXcrBMXFlP1SlX9lfC0C0r8SzwV4CwEeaFxn g5QU6EA64QZTM3a6x5/KfCZ7d991XHjDMPckS18F1A2/ZU3FL7agQ5IomttUw7wwEUg7b1bKLVfYy 27D5wOWNtYn48fcrpDCCrvIoCKio01Qk9BD4rXwkzaMG0KlovJc6Xx8kIzjtoqcLLyAPz68er0PKX WYJR+S7LfSbStGLFgVERAbx0d5GmlJKpzLex4ltdXJNW5fAd5Q4nur1i6dxH+LaPHfbB+M/SuXNu0 9NVzdjxQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1r5n0g-001ubH-38; Wed, 22 Nov 2023 13:11:18 +0000 Date: Wed, 22 Nov 2023 05:11:18 -0800 From: Christoph Hellwig To: Jan Kara Cc: "Ritesh Harjani (IBM)" , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [RFC 2/3] ext2: Convert ext2 regular file buffered I/O to use iomap Message-ID: References: <20231122122946.wg3jqvem6fkg3tgw@quack3> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122122946.wg3jqvem6fkg3tgw@quack3> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Wed, Nov 22, 2023 at 01:29:46PM +0100, Jan Kara wrote: > writeback bit set. XFS plays the revalidation sequence counter games > because of this so we'd have to do something similar for ext2. Not that I'd > care as much about ext2 writeback performance but it should not be that > hard and we'll definitely need some similar solution for ext4 anyway. Can > you give that a try (as a followup "performance improvement" patch). Darrick has mentioned that he is looking into lifting more of the validation sequence counter validation into iomap. In the meantime I have a series here that at least maps multiple blocks inside a folio in a single go, which might be worth trying with ext2 as well: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/iomap-map-multiple-blocks