DragonFly commits List (threaded) for 2005-06
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/sys/kern uipc_mbuf.c
dillon 2005/06/09 11:26:22 PDT
DragonFly src repository
Modified files:
sys/kern uipc_mbuf.c
Log:
Fix a bug in the mbstats accounting. m_mbufs was being decremented for
normal mbufs converted to clustered mbufs, but in fact it should not be
because we decrement it properly when the normal-mbuf-with-cluster is
freed.
Change most of the m_getl()'s back to m_get()'s or m_gethdr()'s in order
to guarentee that the mbuf does NOT have a cluster associated with it
since we are going to try to share the old mbuf's cluster later on
(in m_copym()). This bug was causing the system to run out of mbuf
clusters.
Add a number of assertions for correct operation.
Revision Changes Path
1.51 +37 -21 src/sys/kern/uipc_mbuf.c
http://www.dragonflybsd.org/cvsweb/src/sys/kern/uipc_mbuf.c.diff?r1=1.50&r2=1.51&f=u
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]