libnvdimm, namespace: avoid multiple sector calculations
authorFabian Frederick <fabf@skynet.be>
Sun, 4 Dec 2016 18:48:58 +0000 (10:48 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sun, 4 Dec 2016 18:48:58 +0000 (10:48 -0800)
commit0a3f27b9a6a8f76f1df270e1a18b096f8f5d5dbc
tree3f3b1f067e0c881b83720016ecc27757e33c6b88
parentd37806dc37b42b05515849b0444f09f493cb4cba
libnvdimm, namespace: avoid multiple sector calculations

Use sector_t for cleared

Suggested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pmem.c