diff options
author | Kimberly Brown <kimbrownkd@gmail.com> | 2019-06-07 14:23:00 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-13 13:50:21 +0200 |
commit | ef254d13f1783793747c639d8e79843d5caf995a (patch) | |
tree | 0a2901dcdbba4de52d4d37590905a261fbff5492 /fs/gfs2/sys.c | |
parent | 909bad2d978737592b70a0546edfa8bd023ab147 (diff) | |
download | linux-stable-ef254d13f1783793747c639d8e79843d5caf995a.tar.gz linux-stable-ef254d13f1783793747c639d8e79843d5caf995a.tar.bz2 linux-stable-ef254d13f1783793747c639d8e79843d5caf995a.zip |
gfs2: replace ktype default_attrs with default_groups
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>
Diffstat (limited to 'fs/gfs2/sys.c')
-rw-r--r-- | fs/gfs2/sys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c index 08e4996adc23..fddfb87abd38 100644 --- a/fs/gfs2/sys.c +++ b/fs/gfs2/sys.c @@ -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, }; |