summaryrefslogtreecommitdiff
path: root/include/linux/t10-pi.h
diff options
context:
space:
mode:
authorDmitry Monakhov <dmonakhov@openvz.org>2017-06-29 11:31:12 -0700
committerJens Axboe <axboe@kernel.dk>2017-07-03 16:56:25 -0600
commit128b6f9fdd9ace9e56cb3a263b4bc269658f9c40 (patch)
tree7424d26a92a1a7354293e5117e344b26b84499c0 /include/linux/t10-pi.h
parente23947bd76f00701f9407af23e671f4da96f5f25 (diff)
downloadlwn-128b6f9fdd9ace9e56cb3a263b4bc269658f9c40.tar.gz
lwn-128b6f9fdd9ace9e56cb3a263b4bc269658f9c40.zip
t10-pi: Move opencoded contants to common header
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/t10-pi.h')
-rw-r--r--include/linux/t10-pi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/t10-pi.h b/include/linux/t10-pi.h
index 9375d23a24e7..635a3c5706bd 100644
--- a/include/linux/t10-pi.h
+++ b/include/linux/t10-pi.h
@@ -33,6 +33,8 @@ struct t10_pi_tuple {
__be32 ref_tag; /* Target LBA or indirect LBA */
};
+#define T10_PI_APP_ESCAPE cpu_to_be16(0xffff)
+#define T10_PI_REF_ESCAPE cpu_to_be32(0xffffffff)
extern const struct blk_integrity_profile t10_pi_type1_crc;
extern const struct blk_integrity_profile t10_pi_type1_ip;