aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-05-11 09:45:12 -0400
committerJ. Bruce Fields <bfields@redhat.com>2012-05-31 20:29:46 -0400
commit3a3286147f557f05e002be3ec7512b582373ae65 (patch)
tree6a925ec5343386118b512ccce6c9e8817b410b8c /fs/nfsd/nfs4state.c
parent5ae037e599de5a97eb6ae1054db2fdfbfbac65b5 (diff)
nfsd: make test_share a bool return
All of the callers treat the return that way already. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 8034c2b67a2a..88a897a484ec 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -460,15 +460,15 @@ bmap_to_share_mode(unsigned long bmap) {
460 return access; 460 return access;
461} 461}
462 462
463static int 463static bool
464test_share(struct nfs4_ol_stateid *stp, struct nfsd4_open *open) { 464test_share(struct nfs4_ol_stateid *stp, struct nfsd4_open *open) {
465 unsigned int access, deny; 465 unsigned int access, deny;
466 466
467 access = bmap_to_share_mode(stp->st_access_bmap); 467 access = bmap_to_share_mode(stp->st_access_bmap);
468 deny = bmap_to_share_mode(stp->st_deny_bmap); 468 deny = bmap_to_share_mode(stp->st_deny_bmap);
469 if ((access & open->op_share_deny) || (deny & open->op_share_access)) 469 if ((access & open->op_share_deny) || (deny & open->op_share_access))
470 return 0; 470 return false;
471 return 1; 471 return true;
472} 472}
473 473
474static int nfs4_access_to_omode(u32 access) 474static int nfs4_access_to_omode(u32 access)