diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-03-15 22:58:11 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-04-09 19:20:46 -0400 |
commit | ab1152dd5650d35da6f0f6d3c0cc18f86fdc0725 (patch) | |
tree | 9b659d320d460256823f8ccaf05df39500e279a7 /fs/dcache.c | |
parent | ce285c267a003acbf607f3540ff71287f82e5282 (diff) |
unexport d_alloc_pseudo()
No modular uses since introducion of alloc_file_pseudo(),
and the only non-modular user not in alloc_file_pseudo()
had actually been wrong - should've been d_alloc_anon().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index c663c602f9ef..6dd58ced8236 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -1742,6 +1742,9 @@ struct dentry *d_alloc_cursor(struct dentry * parent) | |||
1742 | * never be anyone's children or parents. Unlike all other | 1742 | * never be anyone's children or parents. Unlike all other |
1743 | * dentries, these will not have RCU delay between dropping the | 1743 | * dentries, these will not have RCU delay between dropping the |
1744 | * last reference and freeing them. | 1744 | * last reference and freeing them. |
1745 | * | ||
1746 | * The only user is alloc_file_pseudo() and that's what should | ||
1747 | * be considered a public interface. Don't use directly. | ||
1745 | */ | 1748 | */ |
1746 | struct dentry *d_alloc_pseudo(struct super_block *sb, const struct qstr *name) | 1749 | struct dentry *d_alloc_pseudo(struct super_block *sb, const struct qstr *name) |
1747 | { | 1750 | { |
@@ -1750,7 +1753,6 @@ struct dentry *d_alloc_pseudo(struct super_block *sb, const struct qstr *name) | |||
1750 | dentry->d_flags |= DCACHE_NORCU; | 1753 | dentry->d_flags |= DCACHE_NORCU; |
1751 | return dentry; | 1754 | return dentry; |
1752 | } | 1755 | } |
1753 | EXPORT_SYMBOL(d_alloc_pseudo); | ||
1754 | 1756 | ||
1755 | struct dentry *d_alloc_name(struct dentry *parent, const char *name) | 1757 | struct dentry *d_alloc_name(struct dentry *parent, const char *name) |
1756 | { | 1758 | { |