]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clean up reassignbuf() and buf_vlist_remove() a bit.
authormarkj <markj@FreeBSD.org>
Thu, 6 Aug 2020 15:43:15 +0000 (15:43 +0000)
committermarkj <markj@FreeBSD.org>
Thu, 6 Aug 2020 15:43:15 +0000 (15:43 +0000)
commitfe9a25e8c6235017f903321654f86a00c04d8439
treebdcce07a97f05f9f3a993422673d182adcc1630c
parentb471c3d0c00d9fe23a0a5394a39d9327dca1a10d
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
sys/kern/vfs_subr.c