]> git.baikalelectronics.ru Git - kernel.git/commit
nvdimm/pmem: move dax_attribute_group from dax to pmem
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Sep 2021 17:34:30 +0000 (19:34 +0200)
committerDan Williams <dan.j.williams@intel.com>
Mon, 27 Sep 2021 18:32:51 +0000 (11:32 -0700)
commitb3ae8bba844499af3ede0dcf4b6a3e2809b1cb7d
tree5df4cf2dc21d0d2d99bed1aff38c8264e659dde1
parent62d0c3c91d43890e76d06eab873e9ff46a58308c
nvdimm/pmem: move dax_attribute_group from dax to pmem

dax_attribute_group is only used by the pmem driver, and can avoid the
completely pointless lookup by the disk name if moved there.  This
leaves just a single caller of dax_get_by_host, so move dax_get_by_host
into the same ifdef block as that caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/20210922173431.2454024-3-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/super.c
drivers/nvdimm/pmem.c
include/linux/dax.h