HomeFreeBSD

swap_pager_seek_data(): improve assertions

Description

swap_pager_seek_data(): improve assertions

Check that the passed object indeed has the swap type.
Accept any kind of the object lock ownership, not only for read.

Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D54219

Details

Provenance
kibAuthored on Dec 14 2025, 9:30 AM
Reviewer
alc
Differential Revision
D54219: vm_object_coalesce(): check that coalescing does not revive stale pages
Parents
rGbf804f69dd94: rtsold: Validate entries in domain search lists
Branches
Unknown
Tags
Unknown