sysfs, kernfs: remove SYSFS_KOBJ_BIN_ATTR
authorTejun Heo <tj@kernel.org>
Thu, 28 Nov 2013 19:54:23 +0000 (14:54 -0500)
committerPawel Osmialowski <p.osmialowsk@mcdsrvbld02.digital.local>
Fri, 27 Mar 2015 13:37:29 +0000 (14:37 +0100)
commit0d10297939bf407de8bc3765e289723fa8b6e555
tree89d152acb9f55b9945156a6f6815f38305a7b50a
parenta680ebfe80e2884505f99329f40d9763e548865d
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