]> www.infradead.org Git - users/hch/misc.git/commit
block: allow surpressing automatic integrity metadata generation
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Aug 2025 16:57:46 +0000 (18:57 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Sep 2025 06:40:59 +0000 (08:40 +0200)
commit35f1f335088b7671a0995e08b8a812c25e4b036c
tree3b431b5174dc39838f2c8b97772c1a6dcf79f4ad
parentc6e6547d7e5009f51414d7929bd1743cfc8554bd
block: allow surpressing automatic integrity metadata generation

Some file systems have checksums and self-describing metadata that
provide a protection enveloped that is as good as or better as that
provided by common protection information formats.  For metadata which
is small and synchronously, read the overhead of the automatic
integrity data generation in the block layer can be noticable, so
add a flag to surpress it when the format allows automatic insertation
and stripping instead.  The flag is simply ignored when the device does
not support integrity metadata, or when the device can't strip and insert
it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/bio-integrity.c
block/blk-integrity.c
block/blk-mq-debugfs.c
include/linux/blk_types.h