]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: factor out a bio_integrity_action helper
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Feb 2026 13:20:01 +0000 (05:20 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Mar 2026 13:47:02 +0000 (07:47 -0600)
commit7ea25eaad5ae3a6c837a3df9bdb822194f002565
tree605d25cad14d147da1fa955036226bc9fcb9fd3d
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
block: factor out a bio_integrity_action helper

Split the logic to see if a bio needs integrity metadata from
bio_integrity_prep into a reusable helper than can be called from
file system code.

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
block/blk-mq.c
drivers/nvdimm/btt.c
include/linux/bio-integrity.h
include/linux/blk-integrity.h