sysfs: Add support for permanently empty directories to serve as mount points.
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 13 May 2015 21:31:40 +0000 (16:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2015 17:10:01 +0000 (10:10 -0700)
commit9924f6e89823a41bfd272ab759636276b9f9ee9c
treeee65aa6c9130c1ad0bfc630d8bf7112ae1fde160
parent80c298105bf80e33ae494eaeba51f00352b5373c
sysfs: Add support for permanently empty directories to serve as mount points.

commit 87d2846fcf88113fae2341da1ca9a71f0d916f2c upstream.

Add two functions sysfs_create_mount_point and
sysfs_remove_mount_point that hang a permanently empty directory off
of a kobject or remove a permanently emptpy directory hanging from a
kobject.  Export these new functions so modular filesystems can use
them.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/dir.c
include/linux/sysfs.h