]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
uninline d_add()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 9 Mar 2016 02:01:03 +0000 (21:01 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2016 04:17:24 +0000 (00:17 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c
include/linux/dcache.h

index 4d20bf5c609ba64e31f19857839776f1db359a9c..12280df07837c8b7176f5bf9606a957734481510 100644 (file)
@@ -2361,6 +2361,22 @@ void d_rehash(struct dentry * entry)
 }
 EXPORT_SYMBOL(d_rehash);
 
+/**
+ * d_add - add dentry to hash queues
+ * @entry: dentry to add
+ * @inode: The inode to attach to this dentry
+ *
+ * This adds the entry to the hash queues and initializes @inode.
+ * The entry was actually filled in earlier during d_alloc().
+ */
+
+void d_add(struct dentry *entry, struct inode *inode)
+{
+       d_instantiate(entry, inode);
+       d_rehash(entry);
+}
+EXPORT_SYMBOL(d_add);
+
 /**
  * d_exact_alias - find and hash an exact unhashed alias
  * @entry: dentry to add
index bda4ec53886b484ebe7f81e2e0507c0a87261b42..1c51d2d84a32e4907698d75d0568c0be0115a078 100644 (file)
@@ -273,21 +273,8 @@ extern int have_submounts(struct dentry *);
  * This adds the entry to the hash queues.
  */
 extern void d_rehash(struct dentry *);
-
-/**
- * d_add - add dentry to hash queues
- * @entry: dentry to add
- * @inode: The inode to attach to this dentry
- *
- * This adds the entry to the hash queues and initializes @inode.
- * The entry was actually filled in earlier during d_alloc().
- */
  
-static inline void d_add(struct dentry *entry, struct inode *inode)
-{
-       d_instantiate(entry, inode);
-       d_rehash(entry);
-}
+extern void d_add(struct dentry *, struct inode *);
 
 extern void dentry_update_name_case(struct dentry *, struct qstr *);