nvme: use DEFINE_SIMPLE_SYSFS_GROUP_VISIBLE for multipath_sysfs
authorJohn Garry <john.g.garry@oracle.com>
Wed, 13 May 2026 09:50:30 +0000 (09:50 +0000)
committerKeith Busch <kbusch@kernel.org>
Wed, 27 May 2026 15:01:36 +0000 (08:01 -0700)
commit5ab7c84f218b08908bf7768e5669d15e89595a02
tree0b97afeec585b49a16d1ddfedba03991aed813c2
parent7ef789703e2b91775dcb36b2efa46325be31a2a0
nvme: use DEFINE_SIMPLE_SYSFS_GROUP_VISIBLE for multipath_sysfs

Use DEFINE_SIMPLE_SYSFS_GROUP_VISIBLE instead of
DEFINE_SYSFS_GROUP_VISIBLE, which means that we can drop
multipath_sysfs_attr_visible().

Incidentally, multipath_sysfs_attr_visible() should have returned a
umode_t.

This idea was suggested by Ben Marzinski elsewhere.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/sysfs.c