mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 16:41:58 +00:00
Revert "NFS: remove BUG possibility in nfs4_open_and_get_state"
This reverts commit f39c010479
.
This commit is contained in:
parent
809fd143de
commit
7488cbc256
@ -2233,13 +2233,9 @@ static int _nfs4_open_and_get_state(struct nfs4_opendata *opendata,
|
||||
ret = _nfs4_proc_open(opendata);
|
||||
if (ret != 0) {
|
||||
if (ret == -ENOENT) {
|
||||
dentry = opendata->dentry;
|
||||
if (dentry->d_inode)
|
||||
d_delete(dentry);
|
||||
else if (d_unhashed(dentry))
|
||||
d_add(dentry, NULL);
|
||||
|
||||
nfs_set_verifier(dentry,
|
||||
d_drop(opendata->dentry);
|
||||
d_add(opendata->dentry, NULL);
|
||||
nfs_set_verifier(opendata->dentry,
|
||||
nfs_save_change_attribute(opendata->dir->d_inode));
|
||||
}
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user