libnvdimm, dax: record the specified alignment of a dax-device instance
authorDan Williams <dan.j.williams@intel.com>
Thu, 31 Mar 2016 22:41:18 +0000 (15:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Aug 2016 07:33:15 +0000 (09:33 +0200)
commita093d23c14cd9646993bd7f05c5afcccdb6d3f40
tree9e5a646b4cdf561a295ca4a549b08c9a10230e25
parent90838e401efa1a6f82f4fc2edf4e1533ec84c343
libnvdimm, dax: record the specified alignment of a dax-device instance

commit 45a0dac0451136fa7ae34a6fea53ef6a136287ce upstream.

We want to use the alignment as the allocation and mapping unit.
Previously this information was only useful for establishing the data
offset, but now it is important to remember the granularity for the
later use.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvdimm/pfn.h
drivers/nvdimm/pfn_devs.c
drivers/nvdimm/pmem.c