Deleted Added
sdiff udiff text old ( 147537 ) new ( 147652 )
full compact
1/*-
2 * Copyright (c) 2004, 2005,
3 * Bosko Milekic <bmilekic@FreeBSD.org>. 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

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/kern/kern_mbuf.c 147537 2005-06-23 04:33:39Z silby $");
30
31#include "opt_mac.h"
32#include "opt_param.h"
33
34#include <sys/param.h>
35#include <sys/mac.h>
36#include <sys/malloc.h>
37#include <sys/systm.h>

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

331
332 m = (struct mbuf *)mem;
333#ifdef INVARIANTS
334 trash_fini(m->m_ext.ext_buf, MCLBYTES);
335#endif
336 uma_zfree_arg(zone_clust, m->m_ext.ext_buf, NULL);
337 m->m_ext.ext_buf = NULL;
338 mbstat.m_mclusts += 1; /* XXX */
339}
340
341/*
342 * The "packet" keg constructor.
343 */
344static int
345mb_ctor_pack(void *mem, int size, void *arg, int how)
346{

--- 65 unchanged lines hidden ---