]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: support T10 protection information
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Feb 2026 13:20:16 +0000 (05:20 -0800)
committerChristian Brauner <brauner@kernel.org>
Tue, 10 Mar 2026 09:29:17 +0000 (10:29 +0100)
commit6bbb4d96f797d42d4baef1691a27a62275727146
treee25179eec2b5495581a2028120d92ad878ae7162
parent0b10a370529cbd7b918c1eef43d409e43d9e0b78
xfs: support T10 protection information

Add support for generating / verifying protection information in the file
system.  This is largely done by simply setting the IOMAP_F_INTEGRITY
flag and letting iomap do all of the work.  XFS just has to ensure that
the data read completions for integrity data are run from user context.

For zoned writeback, XFS also has to generate the integrity data itself
as the zoned writeback path is not using the generic writeback_submit
implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260223132021.292832-17-hch@lst.de
Tested-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/xfs/xfs_aops.c
fs/xfs/xfs_iomap.c