Skip to content

Commit

Permalink
Revert "NFS: nfs4_do_open should add negative results to the dcache."
Browse files Browse the repository at this point in the history
This reverts commit 4fa2c54.
  • Loading branch information
trondmypd committed Nov 5, 2014
1 parent 7488cbc commit dca7800
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dca7800

Please sign in to comment.