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 9C8ABF36C5C for ; Mon, 20 Apr 2026 11:48:24 +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: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:References:In-Reply-To: Message-ID:Date:To:Sender:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/ihXTvLKyo6Wb1Ang8QGQKwAsJl0xkpP7D0mcd98cDo=; b=bQrIFFD43lsltQJnDfCoQ/kHvx RyWaIMH8KZ6lcNW47SJUPaX0KOEf05zQiNgrrhPNBVeKEKgmEGBE6Ftjk1iK+HFzNDbRIMlRIk6cj 1y7+ECkGAQBf//JQeBb+mxCGHS30vgyUtXqHJd+tgZ0qUEWX1fF+3jkA2qAZoOYiShss=; Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1wEn71-000176-6n; Mon, 20 Apr 2026 11:48:23 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1wEn6z-00016n-LT for linux-f2fs-devel@lists.sourceforge.net; Mon, 20 Apr 2026 11:48:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: 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=9o+o/e+0nWVDHKM3SRYN/4oZtN8PnlF2wMfvwmAPe4o=; b=X15wpNDOYMyaPjjAHhIs2GpUsU 0Bh9Ep7sgGEASmC8lNkGwtthrhxJaoM1DBSV4/cmpN4YOUaRDMBq2X/u+pCXmy7S/8jnKGVpRD5pU GgEnE7c1zYDPQ6XQXfPr/P56la8l7jlqB0l9Im1SNo3F0hcHLVTCVVYY9LgfhaUqqGpo=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: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=9o+o/e+0nWVDHKM3SRYN/4oZtN8PnlF2wMfvwmAPe4o=; b=IAbTUquEJXyXZSEYApN4Yodnu8 W4GazDQLUZfwOYnRgia+UlO2iGGTY48r+ymbyK71//vh2Ta5mqj9zuYOGIzmPaGIXVvRYNzk+eWh3 7CcjKOEqKmW92puoUwmcPBMTl2WTbaBdWWCDI5hWWqeYgRyuAWSZxQt2IIxwqvjoQVLU=; Received: from sea.source.kernel.org ([172.234.252.31]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1wEn6z-0007G6-A9 for linux-f2fs-devel@lists.sourceforge.net; Mon, 20 Apr 2026 11:48:21 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 0A54B40637; Mon, 20 Apr 2026 11:48:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A683C19425; Mon, 20 Apr 2026 11:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776685690; bh=60UpzLwPFsE/OH5uzd9+hLYE021xyutp1l0GCWgkWzo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QoVamUM9pS1DOnTInr5BB8va/ZhkdEZykl70IWr4syzFZW8mpej5TV+ISGE6nhlWJ 5Q7c5l5usieSIEuXOjc8mkQxG9mLF+Kzn+px1IFvFvG/eGtn0z17Aj0YvvdySsq8yb CvBsbrYlyR8jiPgvtUSh3ihIymP84bYKpKGtlTjpejfGvPNjjvUewZ/WuT93smBgcR acG1co253dMIb1XO9Fj9iEUN9zvxS7HovZ3ySkYBOzqwxnehLkX49qoTcSdqgzcipa dxW5JGN5P3UAnwNjg7+dLz4KiQsWK69ZUL3Y+uXZPNyU+tJRcDbBNYJMigKeedO/Uj vg3q0n7v1sMzQ== To: linux-xfs@vger.kernel.org, fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, ebiggers@kernel.org Date: Mon, 20 Apr 2026 13:46:59 +0200 Message-ID: <20260420114714.1621982-13-aalbersh@kernel.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260420114714.1621982-1-aalbersh@kernel.org> References: <20260420114714.1621982-1-aalbersh@kernel.org> MIME-Version: 1.0 X-Headers-End: 1wEn6z-0007G6-A9 Subject: [f2fs-dev] [PATCH v8 12/22] xfs: don't allow to enable DAX on fs-verity sealed inode 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: , From: Andrey Albershteyn via Linux-f2fs-devel Reply-To: Andrey Albershteyn Cc: Andrey Albershteyn , djwong@kernel.org, linux-unionfs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-ext4@vger.kernel.org, hch@lst.de, 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 fs-verity doesn't support DAX. Forbid filesystem to enable DAX on inodes which already have fs-verity enabled. The opposite is checked when fs-verity is enabled, it won't be enabled if DAX is. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Andrey Albershteyn --- fs/xfs/xfs_iops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index ca369eb96561..17efc83a86ed 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c @@ -1387,6 +1387,8 @@ xfs_inode_should_enable_dax( return false; if (!xfs_inode_supports_dax(ip)) return false; + if (ip->i_diflags2 & XFS_DIFLAG2_VERITY) + return false; if (xfs_has_dax_always(ip->i_mount)) return true; if (ip->i_diflags2 & XFS_DIFLAG2_DAX) -- 2.51.2 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel