]> git.ipfire.org Git - thirdparty/linux.git/commit
block: factor out a bio_integrity_setup_default helper
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Feb 2026 13:20:02 +0000 (05:20 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Mar 2026 13:47:02 +0000 (07:47 -0600)
commita936655697cd8d1bab2fd5189e2c33dd6356a266
tree9191bdfc6495893544b07ec3fecf91c2ad73b1f3
parent7ea25eaad5ae3a6c837a3df9bdb822194f002565
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 now only set the
seed if any action is set, which is fine as nothing will look at it
otherwise.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Tested-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity-auto.c
block/bio-integrity.c
include/linux/bio-integrity.h