device-dax: use the dev_pagemap internal refcount
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Jun 2019 12:27:15 +0000 (14:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 2 Jul 2019 17:32:44 +0000 (14:32 -0300)
commitea31d5859f5862fc915ccf3fa34f6c6c5f63f336
tree40683425bba31441722f2c73254da618abce3ed5
parent24917f6b1041a73993178920656e13364f847995
device-dax: use the dev_pagemap internal refcount

The functionality is identical to the one currently open coded in
device-dax.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Tested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/dax/dax-private.h
drivers/dax/device.c