]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs, kernfs: introduce sysfs_root_sd
authorTejun Heo <tj@kernel.org>
Thu, 28 Nov 2013 19:54:39 +0000 (14:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Nov 2013 02:09:27 +0000 (18:09 -0800)
commitc21f9928552d38e74708491989bdae181f259fe5
treece67f6c0ed84ab95594ae3b50fe409e80ca336cf
parent2bf99a5c81f3d0fa3df4969dfe227bc393383dba
sysfs, kernfs: introduce sysfs_root_sd

Currently, it's assumed that there's a single kernfs hierarchy in the
system anchored at sysfs_root which is defined as a global struct.  To
allow other users of kernfs, this will be made dynamic.  Introduce a
new global variable sysfs_root_sd which points to &sysfs_root and
convert all &sysfs_root users.

This patch doesn't introduce any behavior difference.

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