]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
For consistency sake, use >= MINCLSIZE rather than > MINCLSIZE to determine
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 7 Mar 2006 21:31:20 +0000 (21:31 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 7 Mar 2006 21:31:20 +0000 (21:31 +0000)
commit67c0796ca306af8094b74bd5f2b73bfb64c2a5ad
tree4347a0cc31d280839d2a8c2cc73fbdcc334de7d4
parenta6991cc704199e77e312b4b3308a2ab9c781e1a3
For consistency sake, use >= MINCLSIZE rather than > MINCLSIZE to determine
whether or not to allocate a full mbuf cluster rather than just a plain
mbuf when adding on additional mbufs in m_getm().  In practice, there wasn't
any resulting mem trashing since m_getm() doesn't ever allocate an mbuf with
a packet header, and MINCLSIZE is the available payload in an mbuf with a
header rather than the available payload in a plain mbuf.

Discussed with:  andre (lightly)
sys/kern/uipc_mbuf.c