summaryrefslogtreecommitdiffstats
path: root/include/linux/t10-pi.h
diff options
context:
space:
mode:
authorMartin K. Petersen2015-10-21 19:19:33 +0200
committerJens Axboe2015-10-21 22:42:38 +0200
commit0f8087ecdeac921fc4920f1328f55c15080bc6aa (patch)
tree6027fd7061230f1488f74938b6bebf804be88376 /include/linux/t10-pi.h
parentblock: Move integrity kobject to struct gendisk (diff)
downloadkernel-qcow2-linux-0f8087ecdeac921fc4920f1328f55c15080bc6aa.tar.gz
kernel-qcow2-linux-0f8087ecdeac921fc4920f1328f55c15080bc6aa.tar.xz
kernel-qcow2-linux-0f8087ecdeac921fc4920f1328f55c15080bc6aa.zip
block: Consolidate static integrity profile properties
We previously made a complete copy of a device's data integrity profile even though several of the fields inside the blk_integrity struct are pointers to fixed template entries in t10-pi.c. Split the static and per-device portions so that we can reference the template directly. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Reported-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Cc: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/t10-pi.h')
-rw-r--r--include/linux/t10-pi.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/t10-pi.h b/include/linux/t10-pi.h
index 6a8b9942632d..dd8de82cf5b5 100644
--- a/include/linux/t10-pi.h
+++ b/include/linux/t10-pi.h
@@ -14,9 +14,9 @@ struct t10_pi_tuple {
};
-extern struct blk_integrity t10_pi_type1_crc;
-extern struct blk_integrity t10_pi_type1_ip;
-extern struct blk_integrity t10_pi_type3_crc;
-extern struct blk_integrity t10_pi_type3_ip;
+extern struct blk_integrity_profile t10_pi_type1_crc;
+extern struct blk_integrity_profile t10_pi_type1_ip;
+extern struct blk_integrity_profile t10_pi_type3_crc;
+extern struct blk_integrity_profile t10_pi_type3_ip;
#endif