diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-03-31 15:41:18 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-05-09 15:35:42 -0700 |
commit | 45a0dac0451136fa7ae34a6fea53ef6a136287ce (patch) | |
tree | 375c69532c6227f5b3f2ff14a756f01097ce2ead /drivers/nvdimm/pfn.h | |
parent | 52ac23b25eb26511f8dea2382534eeada2fa8244 (diff) |
libnvdimm, dax: record the specified alignment of a dax-device instance
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>
Diffstat (limited to 'drivers/nvdimm/pfn.h')
-rw-r--r-- | drivers/nvdimm/pfn.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/nvdimm/pfn.h b/drivers/nvdimm/pfn.h index 8e343a3ca873..9d2704c83fa7 100644 --- a/drivers/nvdimm/pfn.h +++ b/drivers/nvdimm/pfn.h @@ -33,7 +33,9 @@ struct nd_pfn_sb { /* minor-version-1 additions for section alignment */ __le32 start_pad; __le32 end_trunc; - u8 padding[4004]; + /* minor-version-2 record the base alignment of the mapping */ + __le32 align; + u8 padding[4000]; __le64 checksum; }; |