HomeFreeBSD

Include the offset the virtual address is within an L1 or L2 block when

Description

Include the offset the virtual address is within an L1 or L2 block when
finding the vm_page_t in pmap_extract_and_hold. Previously it would return
the vm_page_t of the first page in a block. This would cause issues when,
for example, fsck reads from a device into the middle of a superpage. In
this case the read call would write to the start of the block, and not to
the buffer passed in.

Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

Details

Provenance
andrewAuthored on
Parents
rS304684: indent(1): remove dead assignments.
Branches
Unknown
Tags
Unknown