[PATCH] nvme: use DEFINE_SIMPLE_SYSFS_GROUP_VISIBLE for multipath_sysfs

Christoph Hellwig hch at lst.de
Thu May 14 21:45:29 PDT 2026


On Wed, May 13, 2026 at 09:50:30AM +0000, John Garry wrote:
> 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.

Looks ok, although all the magic symbol name concatenation in the
sysfs code drives me a bit crazy.

Signed-off-by: Christoph Hellwig <hch at lst.de>



More information about the Linux-nvme mailing list