]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs, kernfs: remove SYSFS_KOBJ_BIN_ATTR
authorTejun Heo <tj@kernel.org>
Thu, 28 Nov 2013 19:54:23 +0000 (14:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Nov 2013 01:41:35 +0000 (17:41 -0800)
commite7a5f485eb41ec1fdee02952ae1670e4438009ff
tree013752fe5b620dd8bda9318bd1156941c5995de3
parentdaf2076109cc158700c042abdfcc6aa2358e834c
sysfs, kernfs: remove SYSFS_KOBJ_BIN_ATTR

After kernfs_ops and sysfs_dirent->s_attr.size addition, the
distinction between SYSFS_KOBJ_BIN_ATTR and SYSFS_KOBJ_ATTR is only
necessary while creating files to decide which kernfs_ops to use.
Afterwards, they behave exactly the same.

This patch removes SYSFS_KOBJ_BIN_ATTR along with sysfs_is_bin().
sysfs_add_file[_mode_ns]() are updated to take bool @is_bin instead of
@type.

This patch doesn't introduce any behavior changes.  This completely
isolates the distinction between the two sysfs file types in the sysfs
layer proper.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/file.c
fs/sysfs/group.c
fs/sysfs/inode.c
fs/sysfs/sysfs.h