nfsd: make test_share a bool return
authorJeff Layton <jlayton@redhat.com>
Fri, 11 May 2012 13:45:12 +0000 (09:45 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jun 2012 00:29:46 +0000 (20:29 -0400)
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>
fs/nfsd/nfs4state.c

index 8034c2b67a2a2399c4a618baab8b1fa5415ee2d0..88a897a484ec392690fa2f5907e17ee89e4565a3 100644 (file)
@@ -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)