diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-05-11 17:44:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-21 13:10:00 -0400 |
commit | a2020b02c1ec4fffddb77785773dff533428f814 (patch) | |
tree | 751730d146363e8adde874dc246a66f84fdd69f0 /fs/kernfs/inode.c | |
parent | bdbdf7ee9d561da7b4b840435c963344061953d6 (diff) |
proc: Allow creating permanently empty directories that serve as mount points
commit eb6d38d5427b3ad42f5268da0f1dd31bb0af1264 upstream.
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.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/kernfs/inode.c')
0 files changed, 0 insertions, 0 deletions