aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/dcache.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2018-01-19 11:39:52 +0100
committerMiklos Szeredi <mszeredi@redhat.com>2018-01-24 11:25:59 +0100
commitf9c34674bc60e5fc0af6ec6513517ed9182862b9 (patch)
tree21d5bb257101893ceef29798a3f1dee171b855cb /include/linux/dcache.h
parentovl: store 'has_upper' and 'opaque' as bit flags (diff)
downloadwireguard-linux-f9c34674bc60e5fc0af6ec6513517ed9182862b9.tar.xz
wireguard-linux-f9c34674bc60e5fc0af6ec6513517ed9182862b9.zip
vfs: factor out helpers d_instantiate_anon() and d_alloc_anon()
Those helpers are going to be used by overlayfs to implement NFS export decode. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r--include/linux/dcache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index 65cd8ab60b7a..82a99d366aec 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -227,6 +227,7 @@ extern seqlock_t rename_lock;
*/
extern void d_instantiate(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);
@@ -235,6 +236,7 @@ extern void d_set_d_op(struct dentry *dentry, const struct dentry_operations *op
/* allocate/de-allocate */
extern struct dentry * d_alloc(struct dentry *, const struct qstr *);
+extern struct dentry * d_alloc_anon(struct super_block *);
extern struct dentry * d_alloc_pseudo(struct super_block *, const struct qstr *);
extern struct dentry * d_alloc_parallel(struct dentry *, const struct qstr *,
wait_queue_head_t *);