Skip to content

Commit

Permalink
don't do blind d_drop() in nfs_prime_dcache()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Nov 30, 2012
1 parent e23739b commit 696199f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry)
nfs_refresh_inode(dentry->d_inode, entry->fattr);
goto out;
} else {
d_drop(dentry);
if (d_invalidate(dentry) != 0)
goto out;
dput(dentry);
}
}
Expand Down

0 comments on commit 696199f

Please sign in to comment.