]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove writability requirement for single-mbuf, contiguous-range
authorrpokala <rpokala@FreeBSD.org>
Thu, 12 Jan 2017 06:38:03 +0000 (06:38 +0000)
committerrpokala <rpokala@FreeBSD.org>
Thu, 12 Jan 2017 06:38:03 +0000 (06:38 +0000)
commit07d67037b61378bba2654aa0331c68ac9278b413
tree44295fa75c94c7a6dbc4be38366a197ac1fb71b7
parent03501a5542ab31ebe1e06b28dc01f7106a616f31
Remove writability requirement for single-mbuf, contiguous-range
m_pulldown()

m_pulldown() only needs to determine if a mbuf is writable if it is going to
copy data into the data region of an existing mbuf. It does this to create a
contiguous data region in a single mbuf from multiple mbufs in the chain. If
the requested memory region is already contiguous and nothing needs to
change, the mbuf does not need to be writeable.

Submitted by: Brian Mueller <bmueller@panasas.com>
Reviewed by: bz
MFC after: 1 week
Sponsored by: Panasas
Differential Revision: https://reviews.freebsd.org/D9053
sys/kern/uipc_mbuf2.c