Commit 7488cbc2 authored by Trond Myklebust's avatar Trond Myklebust

Revert "NFS: remove BUG possibility in nfs4_open_and_get_state"

This reverts commit f39c0104.
parent 809fd143
...@@ -2233,13 +2233,9 @@ static int _nfs4_open_and_get_state(struct nfs4_opendata *opendata, ...@@ -2233,13 +2233,9 @@ static int _nfs4_open_and_get_state(struct nfs4_opendata *opendata,
ret = _nfs4_proc_open(opendata); ret = _nfs4_proc_open(opendata);
if (ret != 0) { if (ret != 0) {
if (ret == -ENOENT) { if (ret == -ENOENT) {
dentry = opendata->dentry; d_drop(opendata->dentry);
if (dentry->d_inode) d_add(opendata->dentry, NULL);
d_delete(dentry); nfs_set_verifier(opendata->dentry,
else if (d_unhashed(dentry))
d_add(dentry, NULL);
nfs_set_verifier(dentry,
nfs_save_change_attribute(opendata->dir->d_inode)); nfs_save_change_attribute(opendata->dir->d_inode));
} }
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment