diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-10-23 12:23:03 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-11-04 20:53:50 -0500 |
commit | dca780016dab84d6ac500b1d84fdfe1628802a59 (patch) | |
tree | 2e60d8da7cc8e05c1f0b22b140685ca89e722e89 | |
parent | 7488cbc2568391d5e0b2bda8902a96b5dd7b1ea7 (diff) |
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, | |||
2231 | seq = raw_seqcount_begin(&sp->so_reclaim_seqcount); | 2231 | seq = raw_seqcount_begin(&sp->so_reclaim_seqcount); |
2232 | 2232 | ||
2233 | ret = _nfs4_proc_open(opendata); | 2233 | ret = _nfs4_proc_open(opendata); |
2234 | if (ret != 0) { | 2234 | if (ret != 0) |
2235 | if (ret == -ENOENT) { | ||
2236 | d_drop(opendata->dentry); | ||
2237 | d_add(opendata->dentry, NULL); | ||
2238 | nfs_set_verifier(opendata->dentry, | ||
2239 | nfs_save_change_attribute(opendata->dir->d_inode)); | ||
2240 | } | ||
2241 | goto out; | 2235 | goto out; |
2242 | } | ||
2243 | 2236 | ||
2244 | state = nfs4_opendata_to_nfs4_state(opendata); | 2237 | state = nfs4_opendata_to_nfs4_state(opendata); |
2245 | ret = PTR_ERR(state); | 2238 | ret = PTR_ERR(state); |