OSDN Git Service

btrfs: sysfs: Replace default_attrs in ktypes with groups
authorKimberly Brown <kimbrownkd@gmail.com>
Thu, 2 May 2019 17:34:45 +0000 (13:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2019 13:38:59 +0000 (15:38 +0200)
commit7c7e301406d0a93051d236600a72066278c2e4dc
tree73359d05f765596b699d3fd2001846be6ca43b16
parentd2527682160a09e4eb5e9abcf37e83ee5239561a
btrfs: sysfs: Replace default_attrs in ktypes with groups

The kobj_type default_attrs field is being replaced by the
default_groups field. Replace the default_attrs fields in
btrfs_raid_ktype and space_info_ktype with default_groups.

Change "raid_attributes" to "raid_attrs", and use the ATTRIBUTE_GROUPS
macro to create raid_groups and space_info_groups.

Signed-off-by: Kimberly Brown <kimbrownkd@gmail.com>
Acked-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/sysfs.c