summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2004-07-21 21:03:01 +0000
committerbmilekic <bmilekic@FreeBSD.org>2004-07-21 21:03:01 +0000
commit8f7a784378001685143caa57d4bbf2673b9e1be1 (patch)
tree16cae26dd78cac27005e1d71041e084af97985b7
parentd7343d0e328a6166b38eec1e02e3f4781d0ae25b (diff)
downloadFreeBSD-src-8f7a784378001685143caa57d4bbf2673b9e1be1.zip
FreeBSD-src-8f7a784378001685143caa57d4bbf2673b9e1be1.tar.gz
Back out just a portion of Alfred's last commit. Remove the MBUF_CHECK
(WITNESS) for code paths that always call uma_zalloc_arg() shortly after where the check was, because uma_zalloc_arg() already does a similar check. No objections from Alfred. Thanks Alfred.
-rw-r--r--sys/kern/uipc_mbuf.c2
-rw-r--r--sys/sys/mbuf.h5
2 files changed, 0 insertions, 7 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index a9a93fd..a1449d8 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -105,7 +105,6 @@ m_getm(struct mbuf *m, int len, int how, short type)
int i;
KASSERT(len >= 0, ("m_getm(): len is < 0"));
- MBUF_CHECKSLEEP(how);
/* If m != NULL, we will append to the end of that chain. */
if (m != NULL)
@@ -331,7 +330,6 @@ m_prepend(struct mbuf *m, int len, int how)
{
struct mbuf *mn;
- MBUF_CHECKSLEEP(how);
if (m->m_flags & M_PKTHDR)
MGETHDR(mn, how, m->m_type);
else
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 8eb9606..1056ceb 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -342,7 +342,6 @@ m_get(int how, short type)
{
struct mb_args args;
- MBUF_CHECKSLEEP(how);
args.flags = 0;
args.how = how;
args.type = type;
@@ -357,7 +356,6 @@ m_getclr(int how, short type)
struct mbuf *m;
struct mb_args args;
- MBUF_CHECKSLEEP(how);
args.flags = 0;
args.how = how;
args.type = type;
@@ -373,7 +371,6 @@ m_gethdr(int how, short type)
{
struct mb_args args;
- MBUF_CHECKSLEEP(how);
args.flags = M_PKTHDR;
args.how = how;
args.type = type;
@@ -386,7 +383,6 @@ m_getcl(int how, short type, int flags)
{
struct mb_args args;
- MBUF_CHECKSLEEP(how);
args.flags = flags;
args.how = how;
args.type = type;
@@ -414,7 +410,6 @@ void
m_clget(struct mbuf *m, int how)
{
- MBUF_CHECKSLEEP(how);
m->m_ext.ext_buf = NULL;
uma_zalloc_arg(zone_clust, m, how);
}
OpenPOWER on IntegriCloud