HomeFreeBSD

vm_fault: add vm_fault_might_be_cow() helper

Description

vm_fault: add vm_fault_might_be_cow() helper

The helper checks that the object containing the fs->m page is not the
top object in the shadow chain.

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

Details

Provenance
kibAuthored on Aug 14 2025, 3:39 AM
Reviewer
alc
Differential Revision
D51474: vm_fault: try to only sbusy valid page that is not writeable
Parents
rGc6b79f587f27: vm_fault_busy_sleep(): pass explicit allocflags for vm_page_busy_sleep()
Branches
Unknown
Tags
Unknown