From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59ED74E0B84; Tue, 22 Sep 2026 07:15:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790061346; cv=none; b=MJxowVEb4DiHTSWXd+wnrSyMffgqP5HpdALZ6IYzO7EuC1xSeCg4BBBUekNKZjL5gHBQHR0IALw/plv2BY00bZIjNZcls/3DokYte6jRffTBSqp8/e+4KTMOL95k6aogsv8npp0Ve5UCBKSXkZaasGeQpLuV9GMG1VeNIu6rXgs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790061346; c=relaxed/simple; bh=5byt+2rHZaPcwPvvMI1gHXVbkt0+YuMXKm3uNUejKTQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TOTMlcdhYsUfWzwSBhfoo8PzmAav2ldmpYlxMCZnE8tTCY3lpnOjdmDpzQ5SLknwH9WTYAuOqjjjMewxS1CgSzCA02R/XD+eYDoERozJshsuVYDgEoD30nHmAJgRxvs7hA9oIxg1rxQ2PekLRHdwN7PFrOo3shaz/8YH5ruJ7Kk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=yzYmUF4l; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org 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.b="yzYmUF4l" 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=PLrBUdYaBS0OotZ3Q1WVCL0MGnoMFhhmmfO07iCfEQM=; b=yzYmUF4lTr7WORXAoGiIFoEZh3 aV4JtMaY9XStjqr3jAExeKtko7blJ7VLCfXbIQboEGtnpowxV2fUyrbI3Q/Uc5Ro1+rT2WMkhHoim pPakcuUs2aurFN65Ezf9KS/yNpfrpL0/w6sC4dyhlHCkqKkxGuwANcmuQCJcW4/0+RhxcoYPf87Y/ MmEMQRD9iyK0O68i/LbUKfmL9urNLnDN5STIEv6O3fQSjY3/3gjZGic/Q/sw73KGnILqbEdw7N2Jy WdZ3ozGiUkj4X9nltkrSHPNUv7oYyhM0QcoqTrXPfgDpLrckjyTp4Ig7fJqoYc8aU3c7SVXONuLPU tr4nhJ8g==; Received: from hch by bombadil.infradead.org with local (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8uj7-00000004Tuk-1iOI; Tue, 22 Sep 2026 07:15:41 +0000 Date: Tue, 22 Sep 2026 00:15:41 -0700 From: Christoph Hellwig To: Andrey Albershteyn Cc: djwong@kernel.org, ebiggers@kernel.org, Carlos Maiolino , fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, david@fromorbit.com Subject: Re: [PATCH v16 11/21] xfs: handle fsverity I/O in write/read path Message-ID: References: <20260918111539.1003439-1-aalbersh@kernel.org> <20260918111539.1003439-12-aalbersh@kernel.org> Precedence: bulk X-Mailing-List: fsverity@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260918111539.1003439-12-aalbersh@kernel.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Fri, Sep 18, 2026 at 01:15:23PM +0200, Andrey Albershteyn wrote: > For write/writeback set IOMAP_F_FSVERITY flag telling iomap to not > update inode size and to not skip folios beyond EOF. > > Initiate fsverity writeback with IOMAP_F_FSVERITY set to tell iomap > should not skip folio that is dirty beyond EOF. > > In read path let iomap know that we are reading fsverity metadata. So, > treat holes in the tree as request to synthesize tree blocks and hole > after descriptor as end of the fsverity region. > > Introduce a new inode flag meaning that merkle tree is being build on > the inode. Sashiko had some comments on this that did not sound entirely stupid to me. From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93FD5C982FA for ; Tue, 22 Sep 2026 07:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:In-Reply-To:MIME-Version:References:Message-ID:To:From:Date:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KZV7k6Q+BC3uoDncDuQDSB7stAX+0dwlbuAwVe/trhU=; b=Ge5U4sD8kh+RCGCk+WiFFi58Ll aVHQBtNWoOTYrT1O3uZrg9xM3deBZPSWX59+1vzQiXgjjkndKHQSwcCtwf7RGH5Y7JwF/V2/652WD gtSGLrF0xT3ACsf84wMyaT4u/yhbbUbMWf0pyTJ5H/c7qv0H7XiFArAr6MqvvO2U8OUM=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1x8ujY-0006sU-EO; Tue, 22 Sep 2026 07:16:09 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1x8ujE-0006rF-Ax for linux-f2fs-devel@lists.sourceforge.net; Tue, 22 Sep 2026 07:15:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; 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:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=PLrBUdYaBS0OotZ3Q1WVCL0MGnoMFhhmmfO07iCfEQM=; b=SRtciBtZIZYNCul5MBMFr3Q4ie XvZEnJSV7g8QPXuH+loeXkx1rN/u4qGl5I3Ef3oQNgTtttp8ZFAUas2XSBpq0cpib/AiCQgabMCZj dzMoD9Or+kcdXVrdLt5jxY+mAdmH4DPfPURE04nyBgKoKMpnTgv9K6vKdwnjSzRgpU9o=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; 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:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PLrBUdYaBS0OotZ3Q1WVCL0MGnoMFhhmmfO07iCfEQM=; b=AGhTHDUIi3eKdZm3YGLMfTmKOj PI30emZlmDlI6VAV9rqLB9husfL0onc1eZxigceNDB3naegIpD7ICVwGDJY/E7J8ShfqeutHQ8mZH T3r2patAHydgvLtmN9TtCZEekwBc4FChpGxj3N6YO9A8JTN3OKT2Xa5aFK437VWUahxU=; Received: from bombadil.infradead.org ([198.137.202.133]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1x8ujD-0003H3-5q for linux-f2fs-devel@lists.sourceforge.net; Tue, 22 Sep 2026 07:15:49 +0000 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=PLrBUdYaBS0OotZ3Q1WVCL0MGnoMFhhmmfO07iCfEQM=; b=yzYmUF4lTr7WORXAoGiIFoEZh3 aV4JtMaY9XStjqr3jAExeKtko7blJ7VLCfXbIQboEGtnpowxV2fUyrbI3Q/Uc5Ro1+rT2WMkhHoim pPakcuUs2aurFN65Ezf9KS/yNpfrpL0/w6sC4dyhlHCkqKkxGuwANcmuQCJcW4/0+RhxcoYPf87Y/ MmEMQRD9iyK0O68i/LbUKfmL9urNLnDN5STIEv6O3fQSjY3/3gjZGic/Q/sw73KGnILqbEdw7N2Jy WdZ3ozGiUkj4X9nltkrSHPNUv7oYyhM0QcoqTrXPfgDpLrckjyTp4Ig7fJqoYc8aU3c7SVXONuLPU tr4nhJ8g==; Received: from hch by bombadil.infradead.org with local (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8uj7-00000004Tuk-1iOI; Tue, 22 Sep 2026 07:15:41 +0000 Date: Tue, 22 Sep 2026 00:15:41 -0700 From: Christoph Hellwig To: Andrey Albershteyn Message-ID: References: <20260918111539.1003439-1-aalbersh@kernel.org> <20260918111539.1003439-12-aalbersh@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20260918111539.1003439-12-aalbersh@kernel.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Headers-End: 1x8ujD-0003H3-5q Subject: Re: [f2fs-dev] [PATCH v16 11/21] xfs: handle fsverity I/O in write/read path X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fsverity@lists.linux.dev, linux-xfs@vger.kernel.org, djwong@kernel.org, Carlos Maiolino , david@fromorbit.com, linux-unionfs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, ebiggers@kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-btrfs@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On Fri, Sep 18, 2026 at 01:15:23PM +0200, Andrey Albershteyn wrote: > For write/writeback set IOMAP_F_FSVERITY flag telling iomap to not > update inode size and to not skip folios beyond EOF. > > Initiate fsverity writeback with IOMAP_F_FSVERITY set to tell iomap > should not skip folio that is dirty beyond EOF. > > In read path let iomap know that we are reading fsverity metadata. So, > treat holes in the tree as request to synthesize tree blocks and hole > after descriptor as end of the fsverity region. > > Introduce a new inode flag meaning that merkle tree is being build on > the inode. Sashiko had some comments on this that did not sound entirely stupid to me. _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel