浏览代码

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>
Al Viro 10 年之前
父节点
当前提交
810bb17267
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 5 0
      fs/dcache.c
  2. 0 5
      include/linux/dcache.h

+ 5 - 0
fs/dcache.c

@@ -264,6 +264,11 @@ static void __d_free_external(struct rcu_head *head)
 	kmem_cache_free(dentry_cache, dentry); 
 	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)
 static void dentry_free(struct dentry *dentry)
 {
 {
 	if (unlikely(dname_external(dentry))) {
 	if (unlikely(dname_external(dentry))) {

+ 0 - 5
include/linux/dcache.h

@@ -226,11 +226,6 @@ struct dentry_operations {
 
 
 extern seqlock_t rename_lock;
 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..
  * These are the low-level FS interfaces to the dcache..
  */
  */