/* Adds a dentry to the hash according to its name.  */
void d_rehash(struct dentry *entry)
/* Adds a dentry to the hash according to its name.  */
void d_rehash(struct dentry *entry)
{
	spin_lock(&dcache_lock);
	spin_lock(&entry->d_lock);
	_d_rehash(entry);
	spin_unlock(&entry->d_lock);
	spin_unlock(&dcache_lock);
}