diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-05-11 09:45:12 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-05-31 20:29:46 -0400 |
commit | 3a3286147f557f05e002be3ec7512b582373ae65 (patch) | |
tree | 6a925ec5343386118b512ccce6c9e8817b410b8c /fs/nfsd | |
parent | 5ae037e599de5a97eb6ae1054db2fdfbfbac65b5 (diff) | |
download | linux-3a3286147f557f05e002be3ec7512b582373ae65.tar.bz2 |
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')
-rw-r--r-- | fs/nfsd/nfs4state.c | 6 |
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) { 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) |