diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-10-23 20:23:03 +0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-11-05 04:53:50 +0300 |
commit | dca780016dab84d6ac500b1d84fdfe1628802a59 (patch) | |
tree | 2e60d8da7cc8e05c1f0b22b140685ca89e722e89 | |
parent | 7488cbc2568391d5e0b2bda8902a96b5dd7b1ea7 (diff) | |
download | linux-dca780016dab84d6ac500b1d84fdfe1628802a59.tar.xz |
Revert "NFS: nfs4_do_open should add negative results to the dcache."
This reverts commit 4fa2c54b5198d09607a534e2fd436581064587ed.
-rw-r--r-- | fs/nfs/nfs4proc.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 8026197e2b9f..41b8fcbfdadd 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -2231,15 +2231,8 @@ static int _nfs4_open_and_get_state(struct nfs4_opendata *opendata, seq = raw_seqcount_begin(&sp->so_reclaim_seqcount); ret = _nfs4_proc_open(opendata); - 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)); - } + if (ret != 0) goto out; - } state = nfs4_opendata_to_nfs4_state(opendata); ret = PTR_ERR(state); |