]> www.infradead.org Git - users/hch/block.git/commit
block: ensure BLK_INTEGRITY_{GENERATE,VERIFY} are always accurate
authorChristoph Hellwig <hch@lst.de>
Sun, 6 Jun 2021 12:14:47 +0000 (14:14 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 7 Jun 2021 06:12:03 +0000 (08:12 +0200)
commite6577de0ba5d6864e62ced528b5a99100e0e5d4a
treee1bea4d6d19cc4d10fa793a24a35872c2c62ef6f
parent6e2912cdca6153e14dec9c1981c08d959e8feaf9
block: ensure BLK_INTEGRITY_{GENERATE,VERIFY} are always accurate

Check that the profile actually has generate_fn and verify_fn before
setting these flags to slightly speed up the fast path and also make
the flags more obvious.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/bio-integrity.c
block/blk-integrity.c