diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-03-03 12:08:31 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-03-03 12:08:31 +0000 |
commit | 91ea7f0674b3bfbc7f5f515976b4925bc506e3ce (patch) | |
tree | f73a29ea53efe6c9ab623a7082a2ea347b03e8f7 /sys | |
parent | e571c0fefefb6b92293e6ac0dc936ca3e3312745 (diff) |
use M_READONLY instead of defining M_SHAREDCLUSTER(). the change should have
been made when M_READONLY was introduced. sync w/kame
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_mbuf2.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c index c8beccede0e..98da1d0e1ce 100644 --- a/sys/kern/uipc_mbuf2.c +++ b/sys/kern/uipc_mbuf2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf2.c,v 1.18 2002/10/10 10:38:13 kjc Exp $ */ +/* $OpenBSD: uipc_mbuf2.c,v 1.19 2003/03/03 12:08:30 itojun Exp $ */ /* $KAME: uipc_mbuf2.c,v 1.29 2001/02/14 13:42:10 itojun Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.40 1999/04/01 00:23:25 thorpej Exp $ */ @@ -72,10 +72,6 @@ #include <sys/malloc.h> #include <sys/mbuf.h> -#define M_SHAREDCLUSTER(m) \ - (((m)->m_flags & M_EXT) != 0 && \ - ((m)->m_ext.ext_free || MCLISREFERENCED((m)))) - /* can't call it m_dup(), as freebsd[34] uses m_dup() with different arg */ static struct mbuf *m_dup1(struct mbuf *, int, int, int); @@ -122,7 +118,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 <n, off>. |