HomeFreeBSD

Shorten list of arguments to mbuf external storage freeing function.

Description

Shorten list of arguments to mbuf external storage freeing function.

All of these arguments are stored in m_ext, so there is no reason
to pass them in the argument list. Not all functions need the second
argument, some don't even need the first one. The second argument
lives in next cache line, so not dereferencing it is a performance
gain. This was discovered in sendfile(2), which will be covered by
next commits.

The second goal of this commit is to bring even more flexibility
to m_ext mbufs, allowing to create more fields in m_ext, opaque to
the generic mbuf code, and potentially set and dereferenced by
subsystems.

Reviewed by: gallatin, kbowling
Differential Revision: https://reviews.freebsd.org/D12615

Details

Provenance
glebiusAuthored on
Reviewer
gallatin
Differential Revision
D12615: Mbuf external storage improvements.
Parents
rS324445: When showing the sleepqueues from the in-kernel debugger,
Branches
Unknown
Tags
Unknown