git: staged mbuf(9): Improve m_copyback2() to use the trailing space
Aaron LI
aly at crater.dragonflybsd.org
Fri Dec 22 00:31:27 PST 2023
commit 10ab128c99d4c602bcf5e5a521f3cb30288ff8e1
Author: Aaron LI <aly at aaronly.me>
Date: Fri Dec 22 14:34:50 2023 +0800
mbuf(9): Improve m_copyback2() to use the trailing space
Make use of the trailing space of the last mbuf if available, both in
skipping the offset and in copying back the data.
As a side benefit of this change, the 'm0->m_len' field no longer needs
to be initialized and can simply be 0, as in a newly allocated mbuf.
Referred to both OpenBSD and FreeBSD; however, they only try to use the
trailing space in copying the data.
Summary of changes:
sys/kern/uipc_mbuf.c | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/10ab128c99d4c602bcf5e5a521f3cb30288ff8e1
--
DragonFly BSD source repository
More information about the Commits
mailing list