]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
gfs2: replace ktype default_attrs with default_groups
authorKimberly Brown <kimbrownkd@gmail.com>
Fri, 7 Jun 2019 18:23:00 +0000 (14:23 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2019 11:50:21 +0000 (13:50 +0200)
The kobj_type default_attrs field is being replaced by the
default_groups field. Replace the default_attrs field in gfs2_ktype
with default_groups. Use the ATTRIBUTE_GROUPS macro to create
gfs2_groups.

Signed-off-by: Kimberly Brown <kimbrownkd@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/gfs2/sys.c

index 08e4996adc231d61a26a7b588449bcd3fcd4f99c..fddfb87abd38263990700c208d583302ca1a026e 100644 (file)
@@ -299,6 +299,7 @@ static struct attribute *gfs2_attrs[] = {
        &gfs2_attr_demote_rq.attr,
        NULL,
 };
+ATTRIBUTE_GROUPS(gfs2);
 
 static void gfs2_sbd_release(struct kobject *kobj)
 {
@@ -309,7 +310,7 @@ static void gfs2_sbd_release(struct kobject *kobj)
 
 static struct kobj_type gfs2_ktype = {
        .release = gfs2_sbd_release,
-       .default_attrs = gfs2_attrs,
+       .default_groups = gfs2_groups,
        .sysfs_ops     = &gfs2_attr_ops,
 };