aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 405bd95c1f58..8026197e2b9f 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -2233,13 +2233,9 @@ static int _nfs4_open_and_get_state(struct nfs4_opendata *opendata,
2233 ret = _nfs4_proc_open(opendata); 2233 ret = _nfs4_proc_open(opendata);
2234 if (ret != 0) { 2234 if (ret != 0) {
2235 if (ret == -ENOENT) { 2235 if (ret == -ENOENT) {
2236 dentry = opendata->dentry; 2236 d_drop(opendata->dentry);
2237 if (dentry->d_inode) 2237 d_add(opendata->dentry, NULL);
2238 d_delete(dentry); 2238 nfs_set_verifier(opendata->dentry,
2239 else if (d_unhashed(dentry))
2240 d_add(dentry, NULL);
2241
2242 nfs_set_verifier(dentry,
2243 nfs_save_change_attribute(opendata->dir->d_inode)); 2239 nfs_save_change_attribute(opendata->dir->d_inode));
2244 } 2240 }
2245 goto out; 2241 goto out;