sysfs: explicitly pass size to sysfs_add_bin_file_mode_ns()
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 3 Nov 2024 17:03:30 +0000 (17:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2024 13:00:28 +0000 (14:00 +0100)
commit0afcee132bbc9d7ef9c5bb4da9b6fe014a9afaa9
tree979a72c444fa7b7046b74b5f5e33602ce3662d15
parent09fbb82f9413641cbb6b3fc4970ed4ff6d2a2c2a
sysfs: explicitly pass size to sysfs_add_bin_file_mode_ns()

Upcoming changes to the sysfs core require the size of the created file
to be overridable by the caller.
Add a parameter to enable this.
For now keep using attr->size in all cases.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Krzysztof Wilczyński <kw@linux.com>
Link: https://lore.kernel.org/r/20241103-sysfs-const-bin_attr-v2-1-71110628844c@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/file.c
fs/sysfs/group.c
fs/sysfs/sysfs.h