nfsd: switch unsigned char flags in svc_fh to bools

...just for clarity.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
Jeff Layton
2015-09-17 08:28:39 -04:00
committed by J. Bruce Fields
parent fcaba026a5
commit aaf91ec148
6 changed files with 17 additions and 20 deletions

View File

@@ -112,14 +112,14 @@ static inline int fh_want_write(struct svc_fh *fh)
int ret = mnt_want_write(fh->fh_export->ex_path.mnt);
if (!ret)
fh->fh_want_write = 1;
fh->fh_want_write = true;
return ret;
}
static inline void fh_drop_write(struct svc_fh *fh)
{
if (fh->fh_want_write) {
fh->fh_want_write = 0;
fh->fh_want_write = false;
mnt_drop_write(fh->fh_export->ex_path.mnt);
}
}