mirror-linux/fs/iomap
Christoph Hellwig 0b10a37052
iomap: support T10 protection information
Add support for generating / verifying protection information in iomap.
This is done by hooking into the bio submission and then using the
generic PI helpers.  Compared to just using the block layer auto PI
this extends the protection envelope and also prepares for eventually
passing through PI from userspace at least for direct I/O.

To generate or verify PI, the file system needs to set the
IOMAP_F_INTEGRITY flag on the iomap for the request, and ensure the
ioends are used for all integrity I/O.  Additionally the file system
must defer read I/O completions to user context so that the guard
tag validation isn't run from interrupt context.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260223132021.292832-16-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>
2026-03-10 10:29:17 +01:00
..
Makefile iomap: move buffered io bio logic into new file 2025-11-05 12:57:23 +01:00
bio.c iomap: support T10 protection information 2026-03-10 10:29:17 +01:00
buffered-io.c iomap: only call into ->submit_read when there is a read_ctx 2026-03-10 10:29:03 +01:00
direct-io.c iomap: support T10 protection information 2026-03-10 10:29:17 +01:00
fiemap.c iomap: header diet 2025-07-14 10:51:31 +02:00
internal.h iomap: support T10 protection information 2026-03-10 10:29:17 +01:00
ioend.c iomap: support T10 protection information 2026-03-10 10:29:17 +01:00
iter.c iomap: replace folio_batch allocation with stack allocation 2025-12-15 15:17:44 +01:00
seek.c iomap: simplify iomap_iter_advance() 2025-10-20 20:21:25 +02:00
swapfile.c iomap: header diet 2025-07-14 10:51:31 +02:00
trace.c iomap: header diet 2025-07-14 10:51:31 +02:00
trace.h iomap: add IOMAP_DIO_FSBLOCK_ALIGNED flag 2025-11-05 13:09:27 +01:00