|
@@ -798,7 +798,7 @@ struct dentry *d_alloc_name(struct dentry *parent, const char *name)
|
|
|
|
|
|
void d_instantiate(struct dentry *entry, struct inode * inode)
|
|
void d_instantiate(struct dentry *entry, struct inode * inode)
|
|
{
|
|
{
|
|
- if (!list_empty(&entry->d_alias)) BUG();
|
|
|
|
|
|
+ BUG_ON(!list_empty(&entry->d_alias));
|
|
spin_lock(&dcache_lock);
|
|
spin_lock(&dcache_lock);
|
|
if (inode)
|
|
if (inode)
|
|
list_add(&entry->d_alias, &inode->i_dentry);
|
|
list_add(&entry->d_alias, &inode->i_dentry);
|