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)
commit063e458c7aafc694f2491de7f8f10ff470263d8d
tree9c625ad9d64e0f660e7747172cad6dc478fc595e
parentfc74e0a40e4f9fd0468e34045b0c45bba11dcbb2
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 aa30f47cf666 ("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