]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: Remove support for tagged directories with untagged members (again)
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 25 Oct 2011 12:38:41 +0000 (05:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 Oct 2011 13:10:28 +0000 (15:10 +0200)
commit284bd311887db0edba13ee7339ddf6de443cb0ce
tree54755015072a0200218b2cbd4e29e1495d398fc9
parentcf406d4170e53160031a9a624f6a1b52d6a0d629
sysfs: Remove support for tagged directories with untagged members (again)

In commit 45212e873257 ("Merge git://.../davem/net-next") where my sysfs
changes from the net tree merged with the sysfs rbtree changes from
Mickulas Patocka the conflict resolution failed to preserve the
simplified property that was the point of my changes.

That is sysfs_find_dirent can now say something is a match if and only
s_name and s_ns match what we are looking for, and sysfs_readdir can
simply return all of the directory entries where s_ns matches the
directory that we should be returning.

Now that we are back to exact matches we can tweak sysfs_find_dirent and
the name rb_tree to order sysfs_dirents by s_ns s_name and remove the
second loop in sysfs_find_dirent.  However that change seems a bit much
for a conflict resolution so it can come later.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/sysfs/dir.c