block: lift BIP_CHECK_FLAGS to include/linux/bio-integrity.h

To allow for users outside of bio-integrity-auto.c.  Also add a little
comment explaining it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Link: https://patch.msgid.link/20260804123928.736596-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Christoph Hellwig
2026-08-04 07:22:27 -06:00
committed by Jens Axboe
parent 6c13180dba
commit 738f01912a
2 changed files with 3 additions and 2 deletions
-2
View File
@@ -44,8 +44,6 @@ static void bio_integrity_verify_fn(struct work_struct *work)
bio_endio(bio);
}
#define BIP_CHECK_FLAGS (BIP_CHECK_GUARD | BIP_CHECK_REFTAG | BIP_CHECK_APPTAG)
/**
* __bio_integrity_endio - Integrity I/O completion function
* @bio: Protected bio
+3
View File
@@ -17,6 +17,9 @@ enum bip_flags {
BIP_MEMPOOL = 1 << 15, /* buffer backed by mempool */
};
/* flags that require generate/verify action. */
#define BIP_CHECK_FLAGS (BIP_CHECK_GUARD | BIP_CHECK_REFTAG | BIP_CHECK_APPTAG)
struct bio_integrity_payload {
struct bvec_iter bip_iter;