]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libnvdimm, btt: add support for blk integrity
authorVishal Verma <vishal.l.verma@intel.com>
Thu, 25 Jun 2015 08:21:52 +0000 (04:21 -0400)
committerDan Duval <dan.duval@oracle.com>
Tue, 11 Oct 2016 18:40:06 +0000 (14:40 -0400)
commita6b7dc0cc6ad6c55928de5edbb4959747a851358
tree75dea12c98bdd763b90921d33f0e8f0f4082a8e1
parent7796683a5cca78b2b4f471166dc22e428bb884cb
libnvdimm, btt: add support for blk integrity

Orabug: 22913653

Support multiple block sizes (sector + metadata) using the blk integrity
framework. This registers a new integrity template that defines the
protection information tuple size based on the configured metadata size,
and simply acts as a passthrough for protection information generated by
another layer. The metadata is written to the storage as-is, and read back
with each sector.

Signed-off-by: Vishal Verma <vishal.l.verma@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 41cd8b70c37ace40077c8d6ec0b74b983178c192)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/nvdimm/btt.c
drivers/nvdimm/btt.h
drivers/nvdimm/btt_devs.c
drivers/nvdimm/core.c
drivers/nvdimm/nd.h