HomeFreeBSD

Clean up reassignbuf() and buf_vlist_remove() a bit.

Description

Clean up reassignbuf() and buf_vlist_remove() a bit.

  • Convert panic() calls to INVARIANTS-only assertions. The PCTRIE code provides some of the same protection since it will panic upon an attempt to remove a non-resident buffer.
  • Update the comment above reassignbuf() to reflect reality.

Reviewed by: cem, kib, mjg
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25965

Details

Provenance
markjAuthored on Aug 6 2020, 3:43 PM
Parents
rG7013797e34b0: Remove the vfs.reassignbufcalls counter and sysctl.
Branches
Unknown
Tags
Unknown

Event Timeline