Commit 3a328614 authored by Jeff Layton's avatar Jeff Layton Committed by J. Bruce Fields

nfsd: make test_share a bool return

All of the callers treat the return that way already.
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 5ae037e5
...@@ -460,15 +460,15 @@ bmap_to_share_mode(unsigned long bmap) { ...@@ -460,15 +460,15 @@ bmap_to_share_mode(unsigned long bmap) {
return access; return access;
} }
static int static bool
test_share(struct nfs4_ol_stateid *stp, struct nfsd4_open *open) { test_share(struct nfs4_ol_stateid *stp, struct nfsd4_open *open) {
unsigned int access, deny; unsigned int access, deny;
access = bmap_to_share_mode(stp->st_access_bmap); access = bmap_to_share_mode(stp->st_access_bmap);
deny = bmap_to_share_mode(stp->st_deny_bmap); deny = bmap_to_share_mode(stp->st_deny_bmap);
if ((access & open->op_share_deny) || (deny & open->op_share_access)) if ((access & open->op_share_deny) || (deny & open->op_share_access))
return 0; return false;
return 1; return true;
} }
static int nfs4_access_to_omode(u32 access) static int nfs4_access_to_omode(u32 access)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment