]> git.baikalelectronics.ru Git - kernel.git/commit
orangefs: use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Dec 2021 14:44:07 +0000 (15:44 +0100)
committerMike Marshall <hubcap@omnibond.com>
Fri, 31 Dec 2021 19:37:43 +0000 (14:37 -0500)
commit3c4142233fdd7d3b0e89cc7463af95cea9021db4
tree9c625ad9d64e0f660e7747172cad6dc478fc595e
parentfa6a89fde43e063fdeeeb11ba3c19fd7722e0105
orangefs: use default_groups in kobj_type

There are currently 2 ways to create a set of sysfs files for a
kobj_type, through the default_attrs field, and the default_groups
field.  Move the orangfs code to use default_groups field which has been
the preferred way since 6e6b424e12c4 ("kobject: Add support for default
attribute groups to kobj_type") so that we can soon get rid of the
obsolete default_attrs field.

Cc: Mike Marshall <hubcap@omnibond.com>
Cc: Martin Brandenburg <martin@omnibond.com>
Cc: devel@lists.orangefs.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-sysfs.c