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:

committed by
J. Bruce Fields

parent
fcaba026a5
commit
aaf91ec148
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user