summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-12-25 11:19:35 +0800
committerJ. Bruce Fields <bfields@redhat.com>2020-01-03 11:21:12 -0500
commit500c248171408b80a6c87d278085ad1c8be762c2 (patch)
tree345ea1e7ac9df9fd5bbca50c5ca1afb4ddc40f73 /fs/nfsd
parent384a7ccaa37dff7c84123547dcfd98e2dd4144ba (diff)
downloadlinux-stable-500c248171408b80a6c87d278085ad1c8be762c2.tar.gz
linux-stable-500c248171408b80a6c87d278085ad1c8be762c2.tar.bz2
linux-stable-500c248171408b80a6c87d278085ad1c8be762c2.zip
nfsd: use true,false for bool variable in nfs4proc.c
Fixes coccicheck warning: fs/nfsd/nfs4proc.c:235:1-18: WARNING: Assignment of 0/1 to bool variable fs/nfsd/nfs4proc.c:368:1-17: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index f39cac6e08db..1e14b3ed5674 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -233,7 +233,7 @@ do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, stru
if (!*resfh)
return nfserr_jukebox;
fh_init(*resfh, NFS4_FHSIZE);
- open->op_truncate = 0;
+ open->op_truncate = false;
if (open->op_create) {
/* FIXME: check session persistence and pnfs flags.
@@ -366,7 +366,7 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
if (open->op_create && open->op_claim_type != NFS4_OPEN_CLAIM_NULL)
return nfserr_inval;
- open->op_created = 0;
+ open->op_created = false;
/*
* RFC5661 18.51.3
* Before RECLAIM_COMPLETE done, server should deny new lock