proc: Allow creating permanently empty directories that serve as mount points
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 11 May 2015 21:44:25 +0000 (16:44 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 1 Jul 2015 15:36:41 +0000 (10:36 -0500)
commiteb6d38d5427b3ad42f5268da0f1dd31bb0af1264
tree1fb54abb73c369444d6b84f12e3eff670c0a5d64
parentf9bd6733d3f11e24f3949becf277507d422ee1eb
proc: Allow creating permanently empty directories that serve as mount points

Add a new function proc_create_mount_point that when used to creates a
directory that can not be added to.

Add a new function is_empty_pde to test if a function is a mount
point.

Update the code to use make_empty_dir_inode when reporting
a permanently empty directory to the vfs.

Update the code to not allow adding to permanently empty directories.

Update /proc/openprom and /proc/fs/nfsd to be permanently empty directories.

Cc: stable@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/proc/generic.c
fs/proc/inode.c
fs/proc/internal.h
fs/proc/root.c