HomeFreeBSD

swap_pager_meta_free() frees allocated blocks in a way that

Description

swap_pager_meta_free() frees allocated blocks in a way that
exploits the sparsity of allocated blocks in a range, without
issuing an "are you there?" query for every block in the range.
swap_pager_copy() is not so smart. Modify the implementation
of swap_pager_meta_free() slightly so that swap_pager_copy()
can use that smarter implementation too.

Based on an observation of: Yoshihiro Ota (ota_j.email.ne.jp)
Reviewed by: kib,alc
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D22280

Details

Provenance
dougmAuthored on
Reviewer
kib
Differential Revision
D22280: exploit sparsity in swap_pager_copy
Parents
rS354617: Turn releng/12.1 over to so@.
Branches
Unknown
Tags
Unknown