summaryrefslogtreecommitdiff
path: root/fs/nfsd/vfs.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@poochiereds.net>2015-09-17 15:28:39 +0300
committerJ. Bruce Fields <bfields@redhat.com>2015-10-13 00:31:04 +0300
commitaaf91ec148910e0c2bfd135ea19f870e7196e64f (patch)
tree0c97000244ac94b79728c8b9cba9ba81e1bec318 /fs/nfsd/vfs.h
parentfcaba026a55803dd21523e6e191ba7f59e02a737 (diff)
downloadlinux-aaf91ec148910e0c2bfd135ea19f870e7196e64f.tar.xz
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>
Diffstat (limited to 'fs/nfsd/vfs.h')
-rw-r--r--fs/nfsd/vfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/vfs.h b/fs/nfsd/vfs.h
index fee2451ae248..fcfc48cbe136 100644
--- a/fs/nfsd/vfs.h
+++ b/fs/nfsd/vfs.h
@@ -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);
}
}