Author: glebius Date: Mon Jun 4 14:18:13 2012 New Revision: 236563 URL: http://svn.freebsd.org/changeset/base/236563
Log: Microoptimisation of code from r236560, also coming from Nginx Inc. Submitted by: ru Modified: head/sys/kern/uipc_syscalls.c Modified: head/sys/kern/uipc_syscalls.c ============================================================================== --- head/sys/kern/uipc_syscalls.c Mon Jun 4 14:11:49 2012 (r236562) +++ head/sys/kern/uipc_syscalls.c Mon Jun 4 14:18:13 2012 (r236563) @@ -2184,12 +2184,10 @@ retry_space: /* Append to mbuf chain. */ if (mtail != NULL) { mtail->m_next = m0; - } else { - if (m != NULL) - m_cat(m, m0); - else - m = m0; - } + } else if (m != NULL) + m_last(m)->m_next = m0; + else + m = m0; mtail = m0; /* Keep track of bits processed. */ _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"