diff options
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 06f26d40b4fe..32c666c612a1 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -826,6 +826,10 @@ static int nfs_dentry_delete(struct dentry *dentry) | |||
826 | dentry->d_parent->d_name.name, dentry->d_name.name, | 826 | dentry->d_parent->d_name.name, dentry->d_name.name, |
827 | dentry->d_flags); | 827 | dentry->d_flags); |
828 | 828 | ||
829 | /* Unhash any dentry with a stale inode */ | ||
830 | if (dentry->d_inode != NULL && NFS_STALE(dentry->d_inode)) | ||
831 | return 1; | ||
832 | |||
829 | if (dentry->d_flags & DCACHE_NFSFS_RENAMED) { | 833 | if (dentry->d_flags & DCACHE_NFSFS_RENAMED) { |
830 | /* Unhash it, so that ->d_iput() would be called */ | 834 | /* Unhash it, so that ->d_iput() would be called */ |
831 | return 1; | 835 | return 1; |