uninline d_add()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
668d0cd56e
commit
34d0d19dc0
16
fs/dcache.c
16
fs/dcache.c
@ -2361,6 +2361,22 @@ void d_rehash(struct dentry * entry)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(d_rehash);
|
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
|
* d_exact_alias - find and hash an exact unhashed alias
|
||||||
* @entry: dentry to add
|
* @entry: dentry to add
|
||||||
|
@ -273,21 +273,8 @@ extern int have_submounts(struct dentry *);
|
|||||||
* This adds the entry to the hash queues.
|
* This adds the entry to the hash queues.
|
||||||
*/
|
*/
|
||||||
extern void d_rehash(struct dentry *);
|
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)
|
extern void d_add(struct dentry *, struct inode *);
|
||||||
{
|
|
||||||
d_instantiate(entry, inode);
|
|
||||||
d_rehash(entry);
|
|
||||||
}
|
|
||||||
|
|
||||||
extern void dentry_update_name_case(struct dentry *, struct qstr *);
|
extern void dentry_update_name_case(struct dentry *, struct qstr *);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user