Skip to content

Commit

Permalink
gfs2: replace ktype default_attrs with default_groups
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kimberly Brown authored and Greg Kroah-Hartman committed Jun 13, 2019
1 parent 909bad2 commit ef254d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/gfs2/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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,
};

Expand Down

0 comments on commit ef254d1

Please sign in to comment.