From b6c6352d2943f4034cc3cb608359a1aa899ad762 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Fri, 11 May 2012 09:45:12 -0400 Subject: [PATCH] --- yaml --- r: 309837 b: refs/heads/master c: 3a3286147f557f05e002be3ec7512b582373ae65 h: refs/heads/master i: 309835: 01f34226f3b179107b7dcce1f51ca94da589e4fe v: v3 --- [refs] | 2 +- trunk/fs/nfsd/nfs4state.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index abb2307aa6b8..9eac8f7aca3a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5ae037e599de5a97eb6ae1054db2fdfbfbac65b5 +refs/heads/master: 3a3286147f557f05e002be3ec7512b582373ae65 diff --git a/trunk/fs/nfsd/nfs4state.c b/trunk/fs/nfsd/nfs4state.c index 8034c2b67a2a..88a897a484ec 100644 --- a/trunk/fs/nfsd/nfs4state.c +++ b/trunk/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)