]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs, kernfs: reorganize SYSFS_* constants
authorTejun Heo <tj@kernel.org>
Thu, 28 Nov 2013 19:54:28 +0000 (14:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Nov 2013 01:48:14 +0000 (17:48 -0800)
commitbbfbed27e904252a6eef5438fb76e7aedc719d67
tree70c15f877811a151036b5a593ce7e78eaf773bf4
parentc28ddfd5ba9efbb20788e2b462cc3e3a02847aa1
sysfs, kernfs: reorganize SYSFS_* constants

We want to add one more SYSFS_FLAG_* but we can't use the next higher
bit, 0x10000, as the flag field is 16bits wide.  The flags are
currently arranged weirdly - 8 bits are set aside for the type flags
when there are only three three used, the first flag starts at 0x1000
instead of 0x0100 and flag literals have 5 digits (20 bits) when only
4 digits can be used.

Rearrange them so that type bits are only the lowest four, flags start
at 0x0010 and similar flags are grouped.

This patch doesn't cause any behavior difference.

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