diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2014-06-10 12:29:39 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-06-23 17:31:36 +0200 |
commit | f15a5cf912f05b572d1f9f3772fba019643f4837 (patch) | |
tree | 8966ba5de4a008727730d62aaf8c107c1da98f32 /fs/nfsd/nfs4proc.c | |
parent | NFSD: Using min/max/min_t/max_t for calculate (diff) | |
download | linux-f15a5cf912f05b572d1f9f3772fba019643f4837.tar.xz linux-f15a5cf912f05b572d1f9f3772fba019643f4837.zip |
SUNRPC/NFSD: Change to type of bool for rq_usedeferral and rq_splice_ok
rq_usedeferral and rq_splice_ok are used as 0 and 1, just defined to bool.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index baa3803f0811..be6734060d2a 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -1298,7 +1298,7 @@ nfsd4_proc_compound(struct svc_rqst *rqstp, * Don't use the deferral mechanism for NFSv4; compounds make it * too hard to avoid non-idempotency problems. */ - rqstp->rq_usedeferral = 0; + rqstp->rq_usedeferral = false; /* * According to RFC3010, this takes precedence over all other errors. @@ -1417,7 +1417,7 @@ encode_op: BUG_ON(cstate->replay_owner); out: /* Reset deferral mechanism for RPC deferrals */ - rqstp->rq_usedeferral = 1; + rqstp->rq_usedeferral = true; dprintk("nfsv4 compound returned %d\n", ntohl(status)); return status; } |