summaryrefslogtreecommitdiff
path: root/include/linux/device-mapper.h
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2024-07-10 21:53:12 +0300
committerMike Snitzer <snitzer@kernel.org>2024-07-12 19:39:06 +0300
commit617069741dfbb141bc4574531a5dbbbad8ddf197 (patch)
tree6802e059d9e3513e37413620054305ee3d369a7a /include/linux/device-mapper.h
parentd176fadb9e783c152d0820a50f84882b6c5ae314 (diff)
downloadlinux-617069741dfbb141bc4574531a5dbbbad8ddf197.tar.xz
dm: introduce the target flag mempool_needs_integrity
This commit introduces the dm target flag mempool_needs_integrity. When the flag is set, device mapper will call bioset_integrity_create on it's bio sets. The target can then call bio_integrity_alloc on the bios allocated from the table's mempool. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r--include/linux/device-mapper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index 384649a61bfa..1363f87fbba6 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -405,6 +405,12 @@ struct dm_target {
* support it.
*/
bool flush_bypasses_map:1;
+
+ /*
+ * Set if the target calls bio_integrity_alloc on bios received
+ * in the map method.
+ */
+ bool mempool_needs_integrity:1;
};
void *dm_per_bio_data(struct bio *bio, size_t data_size);