|
Lines 381-386
Link Here
|
| 381 |
#define MCLFREE1(p) do { \ |
381 |
#define MCLFREE1(p) do { \ |
| 382 |
union mcluster *_mp = (union mcluster *)(p); \ |
382 |
union mcluster *_mp = (union mcluster *)(p); \ |
| 383 |
\ |
383 |
\ |
|
|
384 |
KASSERT(mclrefcnt[mtocl(_mp)] > 0, ("freeing free cluster")); \ |
| 384 |
if (--mclrefcnt[mtocl(_mp)] == 0) { \ |
385 |
if (--mclrefcnt[mtocl(_mp)] == 0) { \ |
| 385 |
_mp->mcl_next = mclfree; \ |
386 |
_mp->mcl_next = mclfree; \ |
| 386 |
mclfree = _mp; \ |
387 |
mclfree = _mp; \ |
|
Lines 415-420
Link Here
|
| 415 |
#define MFREE(m, n) MBUFLOCK( \ |
416 |
#define MFREE(m, n) MBUFLOCK( \ |
| 416 |
struct mbuf *_mm = (m); \ |
417 |
struct mbuf *_mm = (m); \ |
| 417 |
\ |
418 |
\ |
|
|
419 |
KASSERT(_mm->m_type != MT_FREE, ("freeing free mbuf")); \ |
| 418 |
mbstat.m_mtypes[_mm->m_type]--; \ |
420 |
mbstat.m_mtypes[_mm->m_type]--; \ |
| 419 |
if (_mm->m_flags & M_EXT) \ |
421 |
if (_mm->m_flags & M_EXT) \ |
| 420 |
MEXTFREE1(m); \ |
422 |
MEXTFREE1(m); \ |