mbuf(9): unbreak m_fragment()
authoravos <avos@FreeBSD.org>
Mon, 16 Oct 2017 21:46:11 +0000 (21:46 +0000)
committeravos <avos@FreeBSD.org>
Mon, 16 Oct 2017 21:46:11 +0000 (21:46 +0000)
commit17ed4f0710d7295ba3b2c22047215359edf287d9
treeab7a3c3c20cd9fe9bae40b9c4d34351a2d9863a9
parent204b05f25aac7a3296b32e1d309ed1d569059773
mbuf(9): unbreak m_fragment()

- Fix it by replacing m_cat() with m_prev->m_next = m_new
(m_cat() will try to append data - as a result, there will be no
fragmentation).
- Move some constants out of the loop.

Was previously tested with D4077.

Differential Revision: https://reviews.freebsd.org/D4090
sys/kern/uipc_mbuf.c