]> git.baikalelectronics.ru Git - kernel.git/commit
dm sysfs: use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jan 2022 10:02:31 +0000 (11:02 +0100)
committerMike Snitzer <snitzer@redhat.com>
Thu, 6 Jan 2022 14:48:55 +0000 (09:48 -0500)
commit9bfbc6f1e6a74e300a242bce9fcbe06747352489
treed130292d2809214b417b2c3b62de87c337967a67
parentef9f4b85629730cf1eb902309e39bec41f873c1c
dm sysfs: use default_groups in kobj_type

There are currently 2 ways to create a set of sysfs files for a
kobj_type, through the default_attrs field, and the default_groups
field.  Move the dm sysfs code to use default_groups field which has
been the preferred way since 69dee9413867 ("kobject: Add support for
default attribute groups to kobj_type") so that we can soon get rid of
the obsolete default_attrs field.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-sysfs.c