]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit466f3962fefaf9429ed4ef0b07289cedcab77f3b
tree06b96da7f964db1e4d3f3c7462562fa7f055b281
parent6308a40de639eb5415dbcee120c154dbbbb3b022
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