diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-12 18:45:37 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-12 23:09:05 +0200 |
commit | 810bb172671aec17cf85cc748120cf73c17af372 (patch) | |
tree | e9a003de1a4c919e7941ac75062b1bd35a52443a /fs/dcache.c | |
parent | let path_init() failures treated the same way as subsequent link_path_walk() (diff) | |
download | linux-810bb172671aec17cf85cc748120cf73c17af372.tar.xz linux-810bb172671aec17cf85cc748120cf73c17af372.zip |
take dname_external() into fs/dcache.c
never used outside and it's too low-level for legitimate uses outside
of fs/dcache.c anyway
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 8221faae0bef..d5a23fd0da90 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -264,6 +264,11 @@ static void __d_free_external(struct rcu_head *head) kmem_cache_free(dentry_cache, dentry); } +static inline int dname_external(const struct dentry *dentry) +{ + return dentry->d_name.name != dentry->d_iname; +} + static void dentry_free(struct dentry *dentry) { if (unlikely(dname_external(dentry))) { |