sysfs, kernfs: no need to kern_mount() sysfs from sysfs_init()
authorTejun Heo <tj@kernel.org>
Thu, 28 Nov 2013 19:54:38 +0000 (14:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Nov 2013 02:09:27 +0000 (18:09 -0800)
commit9e30cc9595303b27b48be49b7bcd4d0679e34253
tree365ab498bd3ecc6d8bcf462be08913828cbf1396
parent51a35e9fd0f229d2f84455ee7e85a5d30fa35594
sysfs, kernfs: no need to kern_mount() sysfs from sysfs_init()

It has been very long since sysfs depended on vfs to keep track of
internal states and whether sysfs is mounted or not doesn't make any
difference to sysfs's internal operation.

In addition to init and filesystem type registration, sysfs_init()
invokes kern_mount() to create in-kernel mount of sysfs.  This
internal mounting doesn't server any purpose anymore.  Remove it.

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