HomeFreeBSD

Add a vm_page_change_lock() helper, the common code to not relock page

Description

Add a vm_page_change_lock() helper, the common code to not relock page
lock if both old and new pages use the same underlying lock. Convert
existing places to use the helper instead of inlining it. Use the
optimization in vm_object_page_remove().

Suggested and reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on
Parents
rS323367: Mark init_chroot and init_script variables as deprecated.
Branches
Unknown
Tags
Unknown