HomeFreeBSD

sbuf(9): Refactor sbuf_newbuf into sbuf_new

Description

sbuf(9): Refactor sbuf_newbuf into sbuf_new

Code flow was somewhat difficult to read due to the combination of
multiple return sites and the 4x possible dynamic constructions of an
sbuf. (Future consideration: do we need all 4?) Refactored slightly to
improve legibility.

No functional change.

Sponsored by: Dell EMC Isilon

Details

Provenance
cemAuthored on
Parents
rS350691: sbuf(9): Add NOWAIT dynamic buffer extension mode
Branches
Unknown
Tags
Unknown