device-dax, tools/testing/nvdimm: enable device-dax with mock resources
authorDave Jiang <dave.jiang@intel.com>
Fri, 7 Apr 2017 22:33:36 +0000 (15:33 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 13 Apr 2017 04:56:43 +0000 (21:56 -0700)
commitefebc711180f7fed701f6e23f23814fcfda7fbfc
tree87dfee7140b895c1d3331386a72c20cd83d8174d
parent006358b35c73ab75544fb4509483a81ef1a9c0b2
device-dax, tools/testing/nvdimm: enable device-dax with mock resources

Provide a replacement pgoff_to_phys() that translates an nfit_test
resource (allocated by vmalloc()) to a pfn.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/dax-private.h [new file with mode: 0644]
drivers/dax/dax.c
tools/testing/nvdimm/Kbuild
tools/testing/nvdimm/dax-dev.c [new file with mode: 0644]