]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm: Fix endian conversion issues 
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Fri, 9 Aug 2019 07:47:26 +0000 (13:17 +0530)
committerDan Williams <dan.j.williams@intel.com>
Tue, 24 Sep 2019 17:23:44 +0000 (10:23 -0700)
commit2b9e1ad5f6f80cc0b5a3c057fb127f61f7578dc0
treec79bb8c499fa10ea06cbc5865ebf6522ce5fcc4a
parentc86d5d5eac112001bae30e7743afb0259b1a862b
libnvdimm: Fix endian conversion issues 

nd_label->dpa issue was observed when trying to enable the namespace created
with little-endian kernel on a big-endian kernel. That made me run
`sparse` on the rest of the code and other changes are the result of that.

Fixes: 83ef0a814387 ("libnvdimm, btt: rework error clearing")
Fixes: 4c3bcb466346 ("libnvdimm/btt: Fix LBA masking during 'free list' population")
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Link: https://lore.kernel.org/r/20190809074726.27815-1-aneesh.kumar@linux.ibm.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/btt.c
drivers/nvdimm/namespace_devs.c