Deleted Added
full compact
uipc_mbuf.c (210226) uipc_mbuf.c (218909)
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 210226 2010-07-18 20:57:53Z trasz $");
33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 218909 2011-02-21 09:01:34Z brucec $");
34
35#include "opt_param.h"
36#include "opt_mbuf_stress_test.h"
37#include "opt_mbuf_profiling.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>

--- 233 unchanged lines hidden (view full) ---

275 m->m_ext.ref_cnt = NULL;
276 m->m_ext.ext_size = 0;
277 m->m_ext.ext_type = 0;
278 m->m_flags &= ~M_EXT;
279 uma_zfree(zone_mbuf, m);
280}
281
282/*
34
35#include "opt_param.h"
36#include "opt_mbuf_stress_test.h"
37#include "opt_mbuf_profiling.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>

--- 233 unchanged lines hidden (view full) ---

275 m->m_ext.ref_cnt = NULL;
276 m->m_ext.ext_size = 0;
277 m->m_ext.ext_type = 0;
278 m->m_flags &= ~M_EXT;
279 uma_zfree(zone_mbuf, m);
280}
281
282/*
283 * Attach the the cluster from *m to *n, set up m_ext in *n
283 * Attach the cluster from *m to *n, set up m_ext in *n
284 * and bump the refcount of the cluster.
285 */
286static void
287mb_dupcl(struct mbuf *n, struct mbuf *m)
288{
289 KASSERT((m->m_flags & M_EXT) == M_EXT, ("%s: M_EXT not set", __func__));
290 KASSERT(m->m_ext.ref_cnt != NULL, ("%s: ref_cnt not set", __func__));
291 KASSERT((n->m_flags & M_EXT) == 0, ("%s: M_EXT set", __func__));

--- 1830 unchanged lines hidden ---
284 * and bump the refcount of the cluster.
285 */
286static void
287mb_dupcl(struct mbuf *n, struct mbuf *m)
288{
289 KASSERT((m->m_flags & M_EXT) == M_EXT, ("%s: M_EXT not set", __func__));
290 KASSERT(m->m_ext.ref_cnt != NULL, ("%s: ref_cnt not set", __func__));
291 KASSERT((n->m_flags & M_EXT) == 0, ("%s: M_EXT set", __func__));

--- 1830 unchanged lines hidden ---