diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-04-19 19:38:01 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-04-19 19:38:01 +0000 |
commit | 0a3be210c0d324c4b3b9e764f2410bb202b19768 (patch) | |
tree | f2d8d02345f431e2653f56364c78a0207e40da69 | |
parent | 1ed5a743f01f83f4f951f8b1c1e6f1d0893c608d (diff) |
in nfsm_reqh(), only allocate an mbuf cluster if the
len exceeds MLEN, not MINCLSIZE; inspired by a similar
commit from damien.
ok damien@, blambert@
-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 d420b98b291..d395001f24d 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_subs.c,v 1.72 2008/04/18 06:42:20 djm Exp $ */ +/* $OpenBSD: nfs_subs.c,v 1.73 2008/04/19 19:38:00 thib Exp $ */ /* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */ /* @@ -536,7 +536,7 @@ nfsm_reqh(vp, procid, hsiz, bposp) caddr_t bpos; MGET(mb, M_WAIT, MT_DATA); - if (hsiz >= MINCLSIZE) + if (hsiz > MLEN) MCLGET(mb, M_WAIT); mb->m_len = 0; bpos = mtod(mb, caddr_t); |