OSDN Git Service

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:10 +0000 (10:10 -0700)
commit1ada60429f016e4a275dfc4dae112ccd0bfa1da6
tree26aefdfff863398d9cb18d7b99816a7f9970fa6e
parentb6a80c2dd807e4f6a18d914b1731b8253a8c0728
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