diff options
| author | 2008-04-16 20:02:46 +0000 | |
|---|---|---|
| committer | 2008-04-16 20:02:46 +0000 | |
| commit | 023f269e67c452d767fc35a50835975f955cf417 (patch) | |
| tree | d9eb3d7701b9f0c3b8b33eddbea20b4fc7ae7801 | |
| parent | - wpa-psk is section 8, not 1 (diff) | |
| download | wireguard-openbsd-023f269e67c452d767fc35a50835975f955cf417.tar.xz wireguard-openbsd-023f269e67c452d767fc35a50835975f955cf417.zip | |
more efficient use of mbufs in nfsm_uiotombuf().
allocate a mbuf cluster only if length is greater than MLEN
instead of MINCLSIZE.
ok blambert@, thib@
| -rw-r--r-- | sys/nfs/nfs_subs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 91f6b819d41..273b1bdc3c2 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_subs.c,v 1.70 2008/04/14 13:46:13 blambert Exp $ */ +/* $OpenBSD: nfs_subs.c,v 1.71 2008/04/16 20:02:46 damien Exp $ */ /* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */ /* @@ -747,7 +747,7 @@ nfsm_uiotombuf(struct mbuf **mp, struct uio *uiop, size_t len, caddr_t *bposp) len -= xfer; if (len > 0) { MGET(mb2, M_WAIT, MT_DATA); - if (len > MINCLSIZE) + if (len > MLEN) MCLGET(mb2, M_WAIT); mb2->m_len = 0; mb->m_next = mb2; |
