projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7488cbc
)
Revert "NFS: nfs4_do_open should add negative results to the dcache."
author
Trond Myklebust
<trond.myklebust@primarydata.com>
Thu, 23 Oct 2014 16:23:03 +0000
(19:23 +0300)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Wed, 5 Nov 2014 01:53:50 +0000
(19:53 -0600)
This reverts commit
4fa2c54b5198d09607a534e2fd436581064587ed
.
fs/nfs/nfs4proc.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index
8026197
..
41b8fcb
100644
(file)
--- 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);