Page MenuHomeFreeBSD

D31082.diff
No OneTemporary

D31082.diff

diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c
--- a/sys/kern/kern_mbuf.c
+++ b/sys/kern/kern_mbuf.c
@@ -1191,19 +1191,19 @@
break;
case EXT_CLUSTER:
uma_zfree(zone_clust, m->m_ext.ext_buf);
- uma_zfree(zone_mbuf, mref);
+ m_free_raw(mref);
break;
case EXT_JUMBOP:
uma_zfree(zone_jumbop, m->m_ext.ext_buf);
- uma_zfree(zone_mbuf, mref);
+ m_free_raw(mref);
break;
case EXT_JUMBO9:
uma_zfree(zone_jumbo9, m->m_ext.ext_buf);
- uma_zfree(zone_mbuf, mref);
+ m_free_raw(mref);
break;
case EXT_JUMBO16:
uma_zfree(zone_jumbo16, m->m_ext.ext_buf);
- uma_zfree(zone_mbuf, mref);
+ m_free_raw(mref);
break;
case EXT_SFBUF:
case EXT_NET_DRV:
@@ -1212,7 +1212,7 @@
KASSERT(mref->m_ext.ext_free != NULL,
("%s: ext_free not set", __func__));
mref->m_ext.ext_free(mref);
- uma_zfree(zone_mbuf, mref);
+ m_free_raw(mref);
break;
case EXT_EXTREF:
KASSERT(m->m_ext.ext_free != NULL,
@@ -1230,7 +1230,7 @@
}
if (freembuf && m != mref)
- uma_zfree(zone_mbuf, m);
+ m_free_raw(m);
}
/*
@@ -1268,11 +1268,11 @@
ktls_enqueue_to_free(mref);
else
#endif
- uma_zfree(zone_mbuf, mref);
+ m_free_raw(mref);
}
if (m != mref)
- uma_zfree(zone_mbuf, m);
+ m_free_raw(m);
}
/*
@@ -1364,7 +1364,7 @@
n = uma_zalloc_arg(zone_jumbop, m, how);
if (n == NULL) {
- uma_zfree(zone_mbuf, m);
+ m_free_raw(m);
return (NULL);
}
@@ -1395,7 +1395,7 @@
zone = m_getzone(size);
n = uma_zalloc_arg(zone, m, how);
if (n == NULL) {
- uma_zfree(zone_mbuf, m);
+ m_free_raw(m);
return (NULL);
}
MBUF_PROBE5(m__getjcl, how, type, flags, size, m);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 6:36 AM (20 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14654627
Default Alt Text
D31082.diff (1 KB)

Event Timeline