block: Consolidate static integrity profile properties
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 21 Oct 2015 17:19:33 +0000 (13:19 -0400)
committerJens Axboe <axboe@fb.com>
Wed, 21 Oct 2015 20:42:38 +0000 (14:42 -0600)
commit0f8087ecdeac921fc4920f1328f55c15080bc6aa
tree6027fd7061230f1488f74938b6bebf804be88376
parentaff34e192e4eeacfb8b5ffc68e10a240f2c0c6d7
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>
block/bio-integrity.c
block/blk-integrity.c
block/t10-pi.c
drivers/nvdimm/core.c
drivers/nvme/host/pci.c
drivers/scsi/sd_dif.c
drivers/target/target_core_iblock.c
include/linux/blkdev.h
include/linux/t10-pi.h