]> asedeno.scripts.mit.edu Git - linux.git/commit
libnvdimm, btt: refactor map entry operations with macros
authorVishal Verma <vishal.l.verma@intel.com>
Thu, 31 Aug 2017 01:35:59 +0000 (19:35 -0600)
committerDan Williams <dan.j.williams@intel.com>
Thu, 31 Aug 2017 22:05:10 +0000 (15:05 -0700)
commit0595d539a5deb4f495618ebbed96db59ae635e32
tree0c5930eff3470fc56261075a15da25e56af3688b
parent1db1f3cea1d8886c686832d4618b346ae16c03c8
libnvdimm, btt: refactor map entry operations with macros

Add helpers for converting a raw map entry to just the block number, or
either of the 'e' or 'z' flags in preparation for actually using the
error flag to mark blocks with media errors.

Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/btt.c
drivers/nvdimm/btt.h