]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Dec 2021 14:42:52 +0000 (15:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 09:53:48 +0000 (10:53 +0100)
commit7f81728ea68469a0fecf33f590a569d9115eb8af
tree1d4f609e1821e037cc2e283118b22c2fe2162d7d
parent5f5db2ccee00eed0a1cd2b74f2359cd357d682eb
nilfs2: 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 nilfs2 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.

Acked-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Link: https://lore.kernel.org/r/20211228144252.390554-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nilfs2/sysfs.c