summaryrefslogtreecommitdiff
path: root/fs/dlm
diff options
context:
space:
mode:
authorKimberly Brown <kimbrownkd@gmail.com>2019-05-08 04:48:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-13 14:50:22 +0300
commitc9c5b5e1565d6166e8d477d598e82652d0d7542d (patch)
tree36fb710ad00982c2fff9e565f73f7688bfbe3065 /fs/dlm
parent59137a93f3af3ffb31c5c538357486df3d2e40d9 (diff)
downloadlinux-c9c5b5e1565d6166e8d477d598e82652d0d7542d.tar.xz
dlm: Replace default_attrs in dlm_ktype with default_groups
The kobj_type default_attrs field is being replaced by the default_groups field, so replace the default_attrs field in dlm_ktype with default_groups. Use the ATTRIBUTE_GROUPS macro to create dlm_groups. Signed-off-by: Kimberly Brown <kimbrownkd@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/lockspace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c
index 4c2c85a223ac..afb8340918b8 100644
--- a/fs/dlm/lockspace.c
+++ b/fs/dlm/lockspace.c
@@ -158,6 +158,7 @@ static struct attribute *dlm_attrs[] = {
&dlm_attr_recover_nodeid.attr,
NULL,
};
+ATTRIBUTE_GROUPS(dlm);
static ssize_t dlm_attr_show(struct kobject *kobj, struct attribute *attr,
char *buf)
@@ -187,7 +188,7 @@ static const struct sysfs_ops dlm_attr_ops = {
};
static struct kobj_type dlm_ktype = {
- .default_attrs = dlm_attrs,
+ .default_groups = dlm_groups,
.sysfs_ops = &dlm_attr_ops,
.release = lockspace_kobj_release,
};