OSDN Git Service

Merge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6
[uclinux-h8/linux.git] / fs / nfs / dir.c
index fbb4cf7..a7bb5c6 100644 (file)
@@ -837,6 +837,8 @@ out_zap_parent:
                /* If we have submounts, don't unhash ! */
                if (have_submounts(dentry))
                        goto out_valid;
+               if (dentry->d_flags & DCACHE_DISCONNECTED)
+                       goto out_valid;
                shrink_dcache_parent(dentry);
        }
        d_drop(dentry);