]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kernfs: Add support for always empty directories.
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 13 May 2015 21:09:29 +0000 (16:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2015 17:10:00 +0000 (10:10 -0700)
commit80c298105bf80e33ae494eaeba51f00352b5373c
tree173d2fa47f6a58fec963d859ab6dfcd553c62ff8
parenta2020b02c1ec4fffddb77785773dff533428f814
kernfs: Add support for always empty directories.

commit ea015218f2f7ace2dad9cedd21ed95bdba2886d7 upstream.

Add a new function kernfs_create_empty_dir that can be used to create
directory that can not be modified.

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.

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