Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309837
b: refs/heads/master
c: 3a32861
h: refs/heads/master
i:
  309835: 01f3422
v: v3
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Jun 1, 2012
1 parent d66172d commit b6c6352
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 5ae037e599de5a97eb6ae1054db2fdfbfbac65b5
refs/heads/master: 3a3286147f557f05e002be3ec7512b582373ae65
6 changes: 3 additions & 3 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,15 +460,15 @@ bmap_to_share_mode(unsigned long bmap) {
return access;
}

static int
static bool
test_share(struct nfs4_ol_stateid *stp, struct nfsd4_open *open) {
unsigned int access, deny;

access = bmap_to_share_mode(stp->st_access_bmap);
deny = bmap_to_share_mode(stp->st_deny_bmap);
if ((access & open->op_share_deny) || (deny & open->op_share_access))
return 0;
return 1;
return false;
return true;
}

static int nfs4_access_to_omode(u32 access)
Expand Down

0 comments on commit b6c6352

Please sign in to comment.