Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267143
b: refs/heads/master
c: 77eaae8
h: refs/heads/master
i:
  267141: e7beea0
  267139: 4e66fab
  267135: 98ad9b9
v: v3
  • Loading branch information
J. Bruce Fields committed Sep 2, 2011
1 parent 782f7f9 commit cd53623
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 7a8711c9a6e2299c324c153da6e3381b1fd56128
refs/heads/master: 77eaae8d44ec5942033b751d0e0d2914c9411862
7 changes: 2 additions & 5 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -2573,7 +2573,6 @@ static __be32
nfs4_check_open(struct nfs4_file *fp, struct nfsd4_open *open, struct nfs4_stateid **stpp)
{
struct nfs4_stateid *local;
__be32 status = nfserr_share_denied;
struct nfs4_stateowner *sop = open->op_stateowner;

list_for_each_entry(local, &fp->fi_stateids, st_perfile) {
Expand All @@ -2585,11 +2584,9 @@ nfs4_check_open(struct nfs4_file *fp, struct nfsd4_open *open, struct nfs4_state
*stpp = local;
/* check for conflicting share reservations */
if (!test_share(local, open))
goto out;
return nfserr_share_denied;
}
status = 0;
out:
return status;
return nfs_ok;
}

static inline struct nfs4_stateid *
Expand Down

0 comments on commit cd53623

Please sign in to comment.