diff options
author | Vishal Verma <vishal.l.verma@intel.com> | 2015-06-25 10:21:52 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-06-26 17:23:38 +0200 |
commit | 41cd8b70c37ace40077c8d6ec0b74b983178c192 (patch) | |
tree | e4d99ee384708f35e4d44549a16b2165a77209ef /drivers/nvdimm/nd.h | |
parent | fs/block_dev.c: skip rw_page if bdev has integrity (diff) | |
download | linux-41cd8b70c37ace40077c8d6ec0b74b983178c192.tar.xz linux-41cd8b70c37ace40077c8d6ec0b74b983178c192.zip |
libnvdimm, btt: add support for blk integrity
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>
Diffstat (limited to 'drivers/nvdimm/nd.h')
-rw-r--r-- | drivers/nvdimm/nd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvdimm/nd.h b/drivers/nvdimm/nd.h index f153f43ca3d6..f4459faa456c 100644 --- a/drivers/nvdimm/nd.h +++ b/drivers/nvdimm/nd.h @@ -136,6 +136,7 @@ enum nd_async_mode { ND_ASYNC, }; +int nd_integrity_init(struct gendisk *disk, unsigned long meta_size); void wait_nvdimm_bus_probe_idle(struct device *dev); void nd_device_register(struct device *dev); void nd_device_unregister(struct device *dev, enum nd_async_mode mode); |