diff --git a/fs/dcache.c b/fs/dcache.c index 5c5f3bd9af5fd262f530daaf0a144acd7d55afea..85a2aad3dcb32a87579c3d043a0308a71ec07d17 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -765,12 +765,9 @@ static struct dentry *__d_find_alias(struct inode *inode) alias = discon_alias; spin_lock(&alias->d_lock); if (S_ISDIR(inode->i_mode) || !d_unhashed(alias)) { - if (IS_ROOT(alias) && - (alias->d_flags & DCACHE_DISCONNECTED)) { - __dget_dlock(alias); - spin_unlock(&alias->d_lock); - return alias; - } + __dget_dlock(alias); + spin_unlock(&alias->d_lock); + return alias; } spin_unlock(&alias->d_lock); goto again;