From 143be0a01b9ccaeab0b2eac306ba23feb7aa1873 Mon Sep 17 00:00:00 2001 From: thorpej Date: Sun, 28 Apr 2002 00:53:34 +0000 Subject: [PATCH] Use M_READONLY() rathern than a home-grown M_SHAREDCLUSTER(). --- sys/kern/uipc_mbuf2.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c index 7a4e1981840f..2587eed1f40c 100644 --- a/sys/kern/uipc_mbuf2.c +++ b/sys/kern/uipc_mbuf2.c @@ -1,4 +1,4 @@ -/* $NetBSD: uipc_mbuf2.c,v 1.8 2001/11/12 15:25:31 lukem Exp $ */ +/* $NetBSD: uipc_mbuf2.c,v 1.9 2002/04/28 00:53:34 thorpej Exp $ */ /* $KAME: uipc_mbuf2.c,v 1.29 2001/02/14 13:42:10 itojun Exp $ */ /* @@ -66,7 +66,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf2.c,v 1.8 2001/11/12 15:25:31 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf2.c,v 1.9 2002/04/28 00:53:34 thorpej Exp $"); #include #include @@ -74,10 +74,6 @@ __KERNEL_RCSID(0, "$NetBSD: uipc_mbuf2.c,v 1.8 2001/11/12 15:25:31 lukem Exp $") #include #include -#define M_SHAREDCLUSTER(m) \ - (((m)->m_flags & M_EXT) != 0 && \ - ((m)->m_ext.ext_free || MCLISREFERENCED((m)))) - /* * ensure that [off, off + len) is contiguous on the mbuf chain "m". * packet chain before "off" is kept untouched. @@ -121,7 +117,7 @@ m_pulldown(m, off, len, offp) return NULL; /* mbuf chain too short */ } - sharedcluster = M_SHAREDCLUSTER(n); + sharedcluster = M_READONLY(n); /* * the target data is on .