aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/dcache.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 5c5f3bd9af5f..85a2aad3dcb3 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -765,12 +765,9 @@ again:
765 alias = discon_alias; 765 alias = discon_alias;
766 spin_lock(&alias->d_lock); 766 spin_lock(&alias->d_lock);
767 if (S_ISDIR(inode->i_mode) || !d_unhashed(alias)) { 767 if (S_ISDIR(inode->i_mode) || !d_unhashed(alias)) {
768 if (IS_ROOT(alias) && 768 __dget_dlock(alias);
769 (alias->d_flags & DCACHE_DISCONNECTED)) { 769 spin_unlock(&alias->d_lock);
770 __dget_dlock(alias); 770 return alias;
771 spin_unlock(&alias->d_lock);
772 return alias;
773 }
774 } 771 }
775 spin_unlock(&alias->d_lock); 772 spin_unlock(&alias->d_lock);
776 goto again; 773 goto again;