From: Eric W. Biederman Date: Mon, 11 May 2015 21:44:25 +0000 (-0500) Subject: proc: Allow creating permanently empty directories that serve as mount points X-Git-Tag: omap-for-v4.2/fixes-rc1^2~19^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb6d38d5427b3ad42f5268da0f1dd31bb0af1264;p=pandora-kernel.git 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" --- Reading git-diff-tree failed