dax: move the dax_read_lock() locking into dax_supported
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Aug 2021 13:55:06 +0000 (15:55 +0200)
committerDan Williams <dan.j.williams@intel.com>
Thu, 26 Aug 2021 23:52:03 +0000 (16:52 -0700)
commit673a0658f6ac359131a881c0dcf1b91c2500ab9c
tree06b96da7f964db1e4d3f3c7462562fa7f055b281
parent1b7646014e0d838b06be7288e2dec3262948cc56
dax: move the dax_read_lock() locking into dax_supported

Move the dax_read_lock/dax_read_unlock pair from the callers into
dax_supported to make it a little easier to use.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/20210826135510.6293-6-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/super.c
drivers/md/dm-table.c