sysfs: split out binary attribute handling from sysfs_add_file_mode_ns
authorChristoph Hellwig <hch@lst.de>
Mon, 13 Sep 2021 05:41:12 +0000 (07:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Sep 2021 14:59:46 +0000 (16:59 +0200)
commit5cf3bb0d3a2d0de94f3f551f0e4211068818aabf
tree91065bdd7f4c5e74a1da37bf8b67f76190271c72
parenteaf501e0d8af691e532b6b9aee511659cf5ee00c
sysfs: split out binary attribute handling from sysfs_add_file_mode_ns

Split adding binary attributes into a separate handler instead of
overloading sysfs_add_file_mode_ns.

Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210913054121.616001-5-hch@lst.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/file.c
fs/sysfs/group.c
fs/sysfs/sysfs.h