diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2010-08-03 01:49:28 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2010-08-03 01:49:28 +0000 |
commit | 68119726efbb1a840112c285f860033903e136a4 (patch) | |
tree | 95de5902e93eee0698f066f8617278f4f7171fd2 /sys/fs/nfsclient/nfs_clsubs.c | |
parent | 36a14ac3ff649bcf068271e0de4d7bc8461cf65f (diff) | |
download | FreeBSD-src-68119726efbb1a840112c285f860033903e136a4.zip FreeBSD-src-68119726efbb1a840112c285f860033903e136a4.tar.gz |
Modify the return value for nfscl_mustflush() from boolean_t,
which I mistakenly thought was correct w.r.t. style(9), back
to int and add the checks for != 0. This is just a stylistic
modification.
MFC after: 1 week
Diffstat (limited to 'sys/fs/nfsclient/nfs_clsubs.c')
-rw-r--r-- | sys/fs/nfsclient/nfs_clsubs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/fs/nfsclient/nfs_clsubs.c b/sys/fs/nfsclient/nfs_clsubs.c index 61554f0..0258d41 100644 --- a/sys/fs/nfsclient/nfs_clsubs.c +++ b/sys/fs/nfsclient/nfs_clsubs.c @@ -187,8 +187,7 @@ ncl_getattrcache(struct vnode *vp, struct vattr *vaper) struct nfsnode *np; struct vattr *vap; struct nfsmount *nmp; - int timeo; - boolean_t mustflush; + int timeo, mustflush; np = VTONFS(vp); vap = &np->n_vattr.na_vattr; @@ -230,7 +229,7 @@ ncl_getattrcache(struct vnode *vp, struct vattr *vaper) #endif if ((time_second - np->n_attrstamp) >= timeo && - (mustflush || np->n_attrstamp == 0)) { + (mustflush != 0 || np->n_attrstamp == 0)) { newnfsstats.attrcache_misses++; mtx_unlock(&np->n_mtx); #ifdef NFS_ACDEBUG |