]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r311963: Remove writability requirement for single-mbuf, contiguous-
authorrpokala <rpokala@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 19 Jan 2017 23:44:05 +0000 (23:44 +0000)
committerrpokala <rpokala@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 19 Jan 2017 23:44:05 +0000 (23:44 +0000)
commitbbc1f596694e4a052558da1a7cec42b38d30e3fc
tree5ed3b1ddac1c626f02d453e329d638fbbcaab300
parentd95503a223a04d523ac5fc64c823fa312e06b69a
MFC r311963: 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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312442 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/uipc_mbuf2.c