libnvdimm, label: honor the lba size specified in v1.2 labels
authorDan Williams <dan.j.williams@intel.com>
Sun, 4 Jun 2017 03:12:07 +0000 (12:12 +0900)
committerDan Williams <dan.j.williams@intel.com>
Thu, 15 Jun 2017 21:31:39 +0000 (14:31 -0700)
commitf979b13c3cc51584882bffa32965f34e5afa3b9b
treeb1e4337476603d8e40790dfc9d7c1097237d8b53
parentc12c48ce869d72029d70666f615cbd8f67fc14e9
libnvdimm, label: honor the lba size specified in v1.2 labels

Previously we only honored the lba size for blk-aperture mode
namespaces. For pmem namespaces the lba size was just assumed to be 512.
With the new v1.2 label definition and compatibility with other
operating environments, the ->lbasize property is now respected for pmem
namespaces.

Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/namespace_devs.c
drivers/nvdimm/nd.h
drivers/nvdimm/pmem.c
include/linux/nd.h