diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-01-06 18:38:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-01-06 18:38:33 +0000 |
commit | fb8c99c10de6c98a3cca6d257d992ff434328839 (patch) | |
tree | bab030597300bf5752be188b06d2b2a3f76442e2 | |
parent | d9e68070345ec64c91f4a717aca03a5abb085545 (diff) |
diff missed in previous commit:
More NFS-related kernel shrinkage...
When you use a macro ~200 times, it tends to bloat your code, so make a
function out of it.
Shaves ~8.5 kB from my kernel.
ok thib@, "looks good" krw@
In snaps for 1+ week with no negative reports.
-rw-r--r-- | sys/nfs/nfs_vfsops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index cbf9d8cb902..81acebb6371 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/nfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vfsops.c,v 1.68 2007/09/20 12:54:31 thib Exp $ */ +/* $OpenBSD: nfs_vfsops.c,v 1.69 2008/01/06 18:38:32 deraadt Exp $ */ /* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */ /* @@ -115,7 +115,7 @@ nfs_statfs(mp, sbp, p) caddr_t bpos, dpos, cp2; struct nfsmount *nmp = VFSTONFS(mp); int error = 0, v3 = (nmp->nm_flag & NFSMNT_NFSV3), retattr; - struct mbuf *mreq, *mrep = NULL, *md, *mb, *mb2; + struct mbuf *mreq, *mrep = NULL, *md, *mb; struct ucred *cred; struct nfsnode *np; u_quad_t tquad; @@ -192,7 +192,7 @@ nfs_fsinfo(nmp, vp, cred, p) u_int32_t *tl, pref, max; caddr_t bpos, dpos, cp2; int error = 0, retattr; - struct mbuf *mreq, *mrep, *md, *mb, *mb2; + struct mbuf *mreq, *mrep, *md, *mb; nfsstats.rpccnt[NFSPROC_FSINFO]++; nfsm_reqhead(vp, NFSPROC_FSINFO, NFSX_FH(1)); |