Skip to content

Commit

Permalink
uninline d_add()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 14, 2016
1 parent 668d0cd commit 34d0d19
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
16 changes: 16 additions & 0 deletions fs/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 1 addition & 14 deletions include/linux/dcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);

Expand Down

0 comments on commit 34d0d19

Please sign in to comment.