vfs: introduce d_instantiate_no_diralias()
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Oct 2013 14:44:54 +0000 (16:44 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Oct 2013 03:41:37 +0000 (23:41 -0400)
commitb70a80e7a133a0c86f2fa078e7c144597c516415
tree378dbeeafc1510fb326eda10e1f48085be098f6c
parent94e92a6e772e009e27083a7f42d49a179e5f668c
vfs: introduce d_instantiate_no_diralias()

...which just returns -EBUSY if a directory alias would be created.

This is to be used by fuse mkdir to make sure that a buggy or malicious
userspace filesystem doesn't do anything nasty.  Previously fuse used a
private mutex for this purpose, which can now go away.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/dcache.c
fs/fuse/dir.c
fs/fuse/fuse_i.h
fs/fuse/inode.c
include/linux/dcache.h