summaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorAl Viro2016-03-09 03:01:03 +0100
committerAl Viro2016-03-14 05:17:24 +0100
commit34d0d19dc0929ccc326448737f05a8fae3d47b8a (patch)
tree8b0d6da98c3340ed8d88fea2ecc9eb1d4359f594 /fs/dcache.c
parentreplace d_add_unique() with saner primitive (diff)
downloadkernel-qcow2-linux-34d0d19dc0929ccc326448737f05a8fae3d47b8a.tar.gz
kernel-qcow2-linux-34d0d19dc0929ccc326448737f05a8fae3d47b8a.tar.xz
kernel-qcow2-linux-34d0d19dc0929ccc326448737f05a8fae3d47b8a.zip
uninline d_add()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 4d20bf5c609b..12280df07837 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -2362,6 +2362,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
* @inode: The inode to go with this dentry