Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372193
b: refs/heads/master
c: 0c7c3e6
h: refs/heads/master
i:
  372191: 59ac23a
v: v3
  • Loading branch information
J. Bruce Fields committed Apr 9, 2013
1 parent e6ed1de commit 2450dad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb2099f31b0f090684a64ef8df44a30ff7c45fc2
refs/heads/master: 0c7c3e67ab91ec6caa44bdf1fc89a48012ceb0c5
8 changes: 1 addition & 7 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,7 @@ static void __nfs4_file_put_access(struct nfs4_file *fp, int oflag)
{
if (atomic_dec_and_test(&fp->fi_access[oflag])) {
nfs4_file_put_fd(fp, oflag);
/*
* It's also safe to get rid of the RDWR open *if*
* we no longer have need of the other kind of access
* or if we already have the other kind of open:
*/
if (fp->fi_fds[1-oflag]
|| atomic_read(&fp->fi_access[1 - oflag]) == 0)
if (atomic_read(&fp->fi_access[1 - oflag]) == 0)
nfs4_file_put_fd(fp, O_RDWR);
}
}
Expand Down

0 comments on commit 2450dad

Please sign in to comment.