HomeFreeBSD

swap_pager: Removing handling for objects with OBJ_SWAP clear

Description

swap_pager: Removing handling for objects with OBJ_SWAP clear

With the removal of OBJT_DEFAULT, we can assume that pager operations
provide an object with OBJ_SWAP set. Also, we do not need to convert
objects from type OBJT_DEFAULT. Thus, remove checks for OBJ_SWAP and
remove code which modifies the object type. In some places, replace the
check for OBJ_SWAP with a check for whether any swap blocks are
assigned.

Reviewed by: alc, kib
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35786

Details

Provenance
markjAuthored on Jul 16 2022, 3:28 PM
Reviewer
alc
Differential Revision
D35786: swap_pager: Removing handling for objects with OBJ_SWAP clear
Parents
rG5d32157d4e5c: vm_object: Modify vm_object_allocate_anon() to return OBJT_SWAP objects
Branches
Unknown
Tags
Unknown