Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kimberly Brown and committed by
Greg Kroah-Hartman
c9c5b5e1 59137a93

+2 -1
+2 -1
fs/dlm/lockspace.c
··· 158 158 &dlm_attr_recover_nodeid.attr, 159 159 NULL, 160 160 }; 161 + ATTRIBUTE_GROUPS(dlm); 161 162 162 163 static ssize_t dlm_attr_show(struct kobject *kobj, struct attribute *attr, 163 164 char *buf) ··· 188 187 }; 189 188 190 189 static struct kobj_type dlm_ktype = { 191 - .default_attrs = dlm_attrs, 190 + .default_groups = dlm_groups, 192 191 .sysfs_ops = &dlm_attr_ops, 193 192 .release = lockspace_kobj_release, 194 193 };