Replace custom mbuf writeability test with generic M_WRITABLE() test

covering all edge cases too.

Sponsored by:	TCP/IP Optimization Fundraise 2005
This commit is contained in:
Andre Oppermann 2005-09-26 20:35:45 +00:00
parent c711b5fe88
commit 8dbf6c2dc8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150599

View file

@ -92,7 +92,7 @@ m_clone(struct mbuf *m0)
/*
* Writable mbufs are left alone (for now).
*/
if (!MEXT_IS_REF(m)) {
if (M_WRITABLE(m)) {
mprev = m;
continue;
}