aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2014-10-23 12:22:31 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-11-04 20:53:49 -0500
commit7488cbc2568391d5e0b2bda8902a96b5dd7b1ea7 (patch)
tree97e18a667b432056745be29d07d4aa1559b50dd6 /fs/nfs
parent809fd143de8805970eec02c27c0bc2622a6ecbda (diff)
Revert "NFS: remove BUG possibility in nfs4_open_and_get_state"
This reverts commit f39c01047994e66e7f3d89ddb4c6141f23349d8d.
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4proc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 405bd95c1f58..8026197e2b9f 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -2233,13 +2233,9 @@ static int _nfs4_open_and_get_state(struct nfs4_opendata *opendata,
2233 ret = _nfs4_proc_open(opendata); 2233 ret = _nfs4_proc_open(opendata);
2234 if (ret != 0) { 2234 if (ret != 0) {
2235 if (ret == -ENOENT) { 2235 if (ret == -ENOENT) {
2236 dentry = opendata->dentry; 2236 d_drop(opendata->dentry);
2237 if (dentry->d_inode) 2237 d_add(opendata->dentry, NULL);
2238 d_delete(dentry); 2238 nfs_set_verifier(opendata->dentry,
2239 else if (d_unhashed(dentry))
2240 d_add(dentry, NULL);
2241
2242 nfs_set_verifier(dentry,
2243 nfs_save_change_attribute(opendata->dir->d_inode)); 2239 nfs_save_change_attribute(opendata->dir->d_inode));
2244 } 2240 }
2245 goto out; 2241 goto out;