diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-28 18:27:19 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-08-01 23:18:53 -0400 |
commit | c971e6a006175bd0f195c6346c4e8bc4089bec00 (patch) | |
tree | 7b5a8c5ec29f2e08fe09b8e7332f2288e247f495 /include/linux/dcache.h | |
parent | b0c6108ecf64fce3987f80c1610472a56d480d9a (diff) | |
download | linux-stable-c971e6a006175bd0f195c6346c4e8bc4089bec00.tar.gz linux-stable-c971e6a006175bd0f195c6346c4e8bc4089bec00.tar.bz2 linux-stable-c971e6a006175bd0f195c6346c4e8bc4089bec00.zip |
kill d_instantiate_no_diralias()
The only user is fuse_create_new_entry(), and there it's used to
mitigate the same mkdir/open-by-handle race as in nfs_mkdir().
The same solution applies - unhash the mkdir argument, then
call d_splice_alias() and if that returns a reference to preexisting
alias, dput() and report success. ->mkdir() argument left unhashed
negative with the preexisting alias moved in the right place is just
fine from the ->mkdir() callers point of view.
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r-- | include/linux/dcache.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 66c6e17e61e5..0b83629a3d8f 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -227,7 +227,6 @@ extern void d_instantiate(struct dentry *, struct inode *); extern void d_instantiate_new(struct dentry *, struct inode *); extern struct dentry * d_instantiate_unique(struct dentry *, struct inode *); extern struct dentry * d_instantiate_anon(struct dentry *, struct inode *); -extern int d_instantiate_no_diralias(struct dentry *, struct inode *); extern void __d_drop(struct dentry *dentry); extern void d_drop(struct dentry *dentry); extern void d_delete(struct dentry *); |