Page MenuHomeFreeBSD

mbuf: Don't force all M_EXTPG mbufs to be read-only
Needs ReviewPublic

Authored by jhb on Wed, Sep 25, 3:13 PM.

Details

Reviewers
gallatin
kp
Summary

Some M_EXTPG mbufs are read-only (e.g. those backing sendfile
requests), but others are not. Add a flags argument to
mb_alloc_ext_pgs that can be used to set M_RDONLY when needed rather
than setting it unconditionally. Update mb_unmapped_to_ext to
preserve M_RDONLY from the unmapped mbuf.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59593
Build 56480: arc lint + arc unit