take dname_external() into fs/dcache.c
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Oct 2014 16:45:37 +0000 (12:45 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Oct 2014 21:09:05 +0000 (17:09 -0400)
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>
fs/dcache.c
include/linux/dcache.h

index 8221faae0bef04e8f5703a77cd2a478661729f3f..d5a23fd0da903848682c659085a6c560e48d8a8c 100644 (file)
@@ -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))) {
index 81b03150f39aa96e11fc866a15e38fb2eeca27b1..27a7f00bc89e1f99ab170ab1f2f3b48cc0e55b41 100644 (file)
@@ -226,11 +226,6 @@ struct dentry_operations {
 
 extern seqlock_t rename_lock;
 
-static inline int dname_external(const struct dentry *dentry)
-{
-       return dentry->d_name.name != dentry->d_iname;
-}
-
 /*
  * These are the low-level FS interfaces to the dcache..
  */