From 0a3be210c0d324c4b3b9e764f2410bb202b19768 Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Sat, 19 Apr 2008 19:38:01 +0000 Subject: 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@ --- sys/nfs/nfs_subs.c | 4 ++-- 1 file 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); -- cgit v1.2.3