Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.137.202.133 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796376655; b=GkjXPFmhBxj71ckmXuGmpOBeq3FBwwH4GGX9tw/197wcwb4MfjSnAiq+yujqrpLcuN4E WvwQGBZTlPecMTAk+bIzAdhbhvznicsUVDhvFIatJeCTPFMNPYhvBkOPCJ4VZ5JcXEEE2 hBhFiy9jQsVysAAZOBsD/BWYMQXZWhUpGq0aNSAyDlDcJYW1v0oXMv3V+P6rtlcJKfXP3 d7gTibDOlSsaovcSYMvBpREPJNMZGIEf7px2HyGBDrDCi5Nw4gc3yPN89lDhBJOlALK69 0eCLRk1aJlJQ5dyNd3ZhUA+cjwRNFFOtWimRQrFgNwRNf41Ofw0jjF8vDa2IBlZTRtA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796376655; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-SRS-Rewrite; bh=EYlME8h0nKuxXG2PJgdFxBaB9Eb05Jg8qcuBT6x/9z8=; b=d1ZgoWeEfUQEIi5HXU9KhMH4dSoY/AAxqDADL9iY9BDQFp4Oawqp55rdz68WBvauKFG9 ohY7+0VZ45w1cHrNdDAzZBBz9bTOR2bGDMmAkZOXV6+ONB8MZ7oS8oufNmy0TVsY630G7 3vbrBTTeMrQFqSr5Yp4GVmlGT+9gD/O69UUSx+tye3SaRejcY1BLUk2K4E6OpCyiKaMhs Pq5IStKxxkE1+OCEp6qAF8KFI9Zj/jpk09uoxlfjhdGrm9OcClPnhTJtchZ6bPdHUg3G1 yqZ93nEsOadX55B5M4ztKu2c7xjJNkQjzsRKIit9+en5CwuOjqhRDioP2T2mEC5jmOw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=PDOlNRcI; arc=none smtp.remote-ip=198.137.202.133 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91F85606A322; Fri, 4 Dec 2026 09:30:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 91F85606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=PDOlNRcI 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=EYlME8h0nKuxXG2PJgdFxBaB9Eb05Jg8qcuBT6x/9z8=; b=PDOlNRcIjdetrx373Fet9a3MTM JrmmdPvZ39uibIQ7qaq6ZVM5vyMD4uyIzAOu5ARCHwPN5U9+cCH4iWqMmaScqiBar089y30RLmi+P Z+KXma/lrVitR+HSeAgwV78XpqBi5+bl83jkRJX+9ihY7JrXgvdWEGsgaxtHU2EynyBK4LbqH3d99 WPykMea0JdUcUAKW8LRsdokwkWKDOREeQNcN14q3eLvxUwLOaIVJYazzKwDgNc9/IOZJCJql7wfDo CDJi8Uhc8Me46HPa0relBH/wFQleLm+e2vwCVyWo/M45oMNCtGTHUHOneQPSbB0n7b97JqnVdk6Ig FGLuhUYA==; Received: from 2a02-8389-2301-9f00-1d8d-b225-bb4b-bd8f.cable.dynamic.v6.surfer.at ([2a02:8389:2301:9f00:1d8d:b225:bb4b:bd8f] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZPcx-0000000HN06-1QZr; Fri, 04 Dec 2026 09:30:53 +0000 From: Christoph Hellwig To: Christian Brauner Cc: Carlos Maiolino , Joanne Koong , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: always initialize ioends in the core iomap code Date: Fri, 4 Dec 2026 10:30:10 +0100 Message-ID: <20261204093048.2537479-1-hch@lst.de> X-Mailer: git-send-email 2.53.0 X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 Hi all, this series moves initialization of optional ioends from file systems code (currently only XFS) into the core iomap code. This prepares for supporting file data checksums in iomap which will be implemented in XFS soon, but I think it also generally improves the architecture by having a more clear layering. Diffstat: fs/iomap/bio.c | 3 +-- fs/iomap/buffered-io.c | 19 +++++++++++++++---- fs/iomap/direct-io.c | 13 ++++++++++--- fs/iomap/internal.h | 4 ++++ fs/iomap/ioend.c | 1 - fs/xfs/xfs_aops.c | 5 ++--- fs/xfs/xfs_file.c | 10 ++++------ fs/xfs/xfs_ioend.c | 14 +++++--------- fs/xfs/xfs_ioend.h | 3 +-- include/linux/iomap.h | 22 ++++++++++++++++++++-- 10 files changed, 62 insertions(+), 32 deletions(-)