]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Free only those mbuf+clusters back to the packet zone that were allocated
authorAndre Oppermann <andre@FreeBSD.org>
Sat, 5 Nov 2005 19:43:55 +0000 (19:43 +0000)
committerAndre Oppermann <andre@FreeBSD.org>
Sat, 5 Nov 2005 19:43:55 +0000 (19:43 +0000)
commitcd5bb63b3d090fa99daa9b4a5f1dc91f81044ab8
treee16b6429310ae66ea56b3c0ac095805aea0d4c1c
parent39283b0b4b9c0586a41b960897106b3cdfe0ef2c
Free only those mbuf+clusters back to the packet zone that were allocated
from there.  All others get broken up and free'd individually to the mbuf
and cluster zones.

The packet zone is a secondary zone to the mbuf zone.  There is currently
a limitation in UMA which prevents decreasing the packet zone stock when
the mbuf and cluster zone are drained and all their members are part of
packets.  When this is fixed this change may be reverted.
sys/kern/kern_mbuf.c
sys/kern/uipc_mbuf.c
sys/sys/mbuf.h