]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm: Use PAGE_SIZE instead of SZ_4K for align check
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 5 Sep 2019 15:46:02 +0000 (21:16 +0530)
committerDan Williams <dan.j.williams@intel.com>
Thu, 5 Sep 2019 23:11:14 +0000 (16:11 -0700)
commit215c62d48e9c2b0eefb7de172511dd26aab63042
treed927139658fccca825a0448052d32693dac766e6
parent9dc3e44f52e8a85d8891a96d3c4733286f500c7d
libnvdimm: Use PAGE_SIZE instead of SZ_4K for align check

Architectures have different page size than 4K. Use the PAGE_SIZE
to make sure ranges are correctly aligned.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Link: https://lore.kernel.org/r/20190905154603.10349-7-aneesh.kumar@linux.ibm.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/namespace_devs.c
drivers/nvdimm/region_devs.c