xfs: sysfs: use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jan 2022 19:10:18 +0000 (11:10 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 6 Jan 2022 18:43:30 +0000 (10:43 -0800)
commit219aac5d469f7c0bc8ca299dcdeab70380076d24
treed84df7adfcd3d25229cef03809a8d9cac7482892
parentf8d92a66e810acbef6ddbc0bd0cbd9b117ce8acd
xfs: sysfs: 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 xfs sysfs 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: "Darrick J. Wong" <djwong@kernel.org>
Cc: linux-xfs@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_error.c
fs/xfs/xfs_sysfs.c