]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: Remove support for tagged directories with untagged members.
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 12 Oct 2011 22:01:34 +0000 (22:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 23:24:15 +0000 (19:24 -0400)
commit3d7c469328928596252e1653135f85862d133547
treea943f113f6532b04fcef1673113493cf44ac2365
parentd7873f92fda775976150efb0653dff1673422a59
sysfs: Remove support for tagged directories with untagged members.

Now that /sys/class/net/bonding_masters is implemented as a tagged sysfs
file we can remove support for untagged files in tagged directories.

This change removes any ambiguity of what a NULL namespace value
means.  A NULL namespace parameter after this patch means
that we are talking about an untagged sysfs dirent.

This makes the sysfs code much less prone to mistakes when during
maintenance.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/sysfs/dir.c
fs/sysfs/inode.c