aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-10-25 14:08:24 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2019-10-25 14:08:24 -0400
commit5c8b0dfc6f4a5e6c707827d0172fc1572e689094 (patch)
treef23309b9028ade0e982955e3607c62309cfc75bb /fs
parentfs/namespace: add __user to open_tree and move_mount syscalls (diff)
downloadlinux-dev-5c8b0dfc6f4a5e6c707827d0172fc1572e689094.tar.xz
linux-dev-5c8b0dfc6f4a5e6c707827d0172fc1572e689094.zip
make __d_alloc() static
no users outside of fs/dcache.c Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/dcache.c2
-rw-r--r--fs/internal.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index e88cf0554e65..8ede5fa1e32c 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -1679,7 +1679,7 @@ EXPORT_SYMBOL(d_invalidate);
* copied and the copy passed in may be reused after this call.
*/
-struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name)
+static struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name)
{
struct dentry *dentry;
char *dname;
diff --git a/fs/internal.h b/fs/internal.h
index 315fcd8d237c..4a7da1df573d 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -151,7 +151,6 @@ extern int invalidate_inodes(struct super_block *, bool);
/*
* dcache.c
*/
-extern struct dentry *__d_alloc(struct super_block *, const struct qstr *);
extern int d_set_mounted(struct dentry *dentry);
extern long prune_dcache_sb(struct super_block *sb, struct shrink_control *sc);
extern struct dentry *d_alloc_cursor(struct dentry *);