Skip to content

Commit 5c8b0df

Browse files
author
Al Viro
committed
make __d_alloc() static
no users outside of fs/dcache.c Signed-off-by: Al Viro <[email protected]>
1 parent 2658ce0 commit 5c8b0df

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

fs/dcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ EXPORT_SYMBOL(d_invalidate);
16791679
* copied and the copy passed in may be reused after this call.
16801680
*/
16811681

1682-
struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name)
1682+
static struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name)
16831683
{
16841684
struct dentry *dentry;
16851685
char *dname;

fs/internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ extern int invalidate_inodes(struct super_block *, bool);
151151
/*
152152
* dcache.c
153153
*/
154-
extern struct dentry *__d_alloc(struct super_block *, const struct qstr *);
155154
extern int d_set_mounted(struct dentry *dentry);
156155
extern long prune_dcache_sb(struct super_block *sb, struct shrink_control *sc);
157156
extern struct dentry *d_alloc_cursor(struct dentry *);

0 commit comments

Comments
 (0)