kernels/linux-2.4.0/fs/dcache.c
/**
 * d_rehash	- add an entry back to the hash
 * @entry: dentry to add to the hash
 *
 * Adds a dentry to the hash according to its name.
 */
d_rehash     - add an entry back to the hash
@entry: dentry to add to the hash

Adds a dentry to the hash according to its name.
d_rehash - add an entry back to the hash @entry : dentry to add to the hash Adds a dentry to the hash according to its name .
void d_rehash(struct dentry * entry)
{
	struct list_head *list = d_hash(entry->d_parent, entry->d_name.hash);
	spin_lock(&dcache_lock);
	list_add(&entry->d_hash, list);
	spin_unlock(&dcache_lock);
}
void d_rehash ( struct dentry * entry ) { struct list_head * list = d_hash ( entry -> d_parent , entry -> d_name . hash ) ; spin_lock ( & dcache_lock ) ; list_add ( & entry -> d_hash , list ) ; spin_unlock ( & dcache_lock ) ; }
d_rehash     - add an entry back to the hash
 @entry: dentry to add to the hash
d_rehash - add an entry back to the hash @entry : dentry to add to the hash