diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2010-07-18 00:24:01 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2010-07-18 00:24:01 +0000 |
commit | 7520b52ca5e20db1724956256a51136d40b9cd18 (patch) | |
tree | de1b98ab8df27414fe64ead0805c1c58f919043e /sys/fs/nfsclient/nfs_clsubs.c | |
parent | 7ddfd4597ed6219b2510eb9d8c8a184e7347b3b3 (diff) | |
download | FreeBSD-src-7520b52ca5e20db1724956256a51136d40b9cd18.zip FreeBSD-src-7520b52ca5e20db1724956256a51136d40b9cd18.tar.gz |
Change the nfscl_mustflush() function in the experimental NFSv4
client to return a boolean_t in order to make it more compatible
with style(9).
MFC after: 2 weeks
Diffstat (limited to 'sys/fs/nfsclient/nfs_clsubs.c')
-rw-r--r-- | sys/fs/nfsclient/nfs_clsubs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/nfsclient/nfs_clsubs.c b/sys/fs/nfsclient/nfs_clsubs.c index d74c5c5..07f0123 100644 --- a/sys/fs/nfsclient/nfs_clsubs.c +++ b/sys/fs/nfsclient/nfs_clsubs.c @@ -188,7 +188,8 @@ ncl_getattrcache(struct vnode *vp, struct vattr *vaper) struct nfsnode *np; struct vattr *vap; struct nfsmount *nmp; - int timeo, mustflush; + int timeo; + boolean_t mustflush; np = VTONFS(vp); vap = &np->n_vattr.na_vattr; @@ -230,7 +231,7 @@ ncl_getattrcache(struct vnode *vp, struct vattr *vaper) #endif if ((time_second - np->n_attrstamp) >= timeo && - (mustflush != 0 || np->n_attrstamp == 0)) { + (mustflush || np->n_attrstamp == 0)) { newnfsstats.attrcache_misses++; mtx_unlock(&np->n_mtx); #ifdef NFS_ACDEBUG |