]> www.infradead.org Git - users/hch/misc.git/commit
block: factor out a bio_integrity_setup_default helper
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Aug 2025 07:32:53 +0000 (09:32 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Sep 2025 06:40:58 +0000 (08:40 +0200)
commitd8d02f00a07e26ef70cab2ebd525d407d157b3cc
tree47d06efcd8f7021b0728cbb227562db78316a960
parent34fc93dc5cca373585346199b8701dad3adfa7fc
block: factor out a bio_integrity_setup_default helper

Add a helper to set the seed and check flag based on useful defaults
from the profile.

Note that this includes a small behavior change, as we ow only sets the
seed if any action is set, which is fine as nothing will look at it.

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