Revert "NFS: nfs4_do_open should add negative results to the dcache."
This reverts commit 4fa2c54b51
.
This commit is contained in:
Родитель
7488cbc256
Коммит
dca780016d
|
@ -2231,15 +2231,8 @@ static int _nfs4_open_and_get_state(struct nfs4_opendata *opendata,
|
||||||
seq = raw_seqcount_begin(&sp->so_reclaim_seqcount);
|
seq = raw_seqcount_begin(&sp->so_reclaim_seqcount);
|
||||||
|
|
||||||
ret = _nfs4_proc_open(opendata);
|
ret = _nfs4_proc_open(opendata);
|
||||||
if (ret != 0) {
|
if (ret != 0)
|
||||||
if (ret == -ENOENT) {
|
|
||||||
d_drop(opendata->dentry);
|
|
||||||
d_add(opendata->dentry, NULL);
|
|
||||||
nfs_set_verifier(opendata->dentry,
|
|
||||||
nfs_save_change_attribute(opendata->dir->d_inode));
|
|
||||||
}
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
|
||||||
|
|
||||||
state = nfs4_opendata_to_nfs4_state(opendata);
|
state = nfs4_opendata_to_nfs4_state(opendata);
|
||||||
ret = PTR_ERR(state);
|
ret = PTR_ERR(state);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче