HomeFreeBSD

file: Add foffset_lock_pair()

Description

file: Add foffset_lock_pair()

This will be used in kern_copy_file_range(), which needs to lock two
offsets.

Reviewed by: kib, rmacklem
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D49440

(cherry picked from commit 12ecb0fe0afda8c051605045e446371ddd34741f)

Details

Provenance
markjAuthored on Mar 31 2025, 1:25 AM
Reviewer
kib
Differential Revision
D49440: copy_file_range: Fix file offset handling
Parents
rGe6a3962d7dd7: hyperv/storvsc: Avoid conditional asserts in storvsc_xferbuf_prepare()
Branches
Unknown
Tags
Unknown