HomeFreeBSD

rangelock: Fix an off-by-one error

Description

rangelock: Fix an off-by-one error

A rangelock entry covers the range [start, end), so entries e1 and e2
with e1->end == e2->start do not overlap.

PR: 281073
Fixes: 5badbeeaf061 ("Re-implement rangelocks part 2")
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D46458

Details

Provenance
markjAuthored on Aug 27 2024, 8:29 PM
Reviewer
kib
Differential Revision
D46458: rangelock: Fix an off-by-one error
Parents
rG705008fbfdbe: fusefs: Fix warning formatting
Branches
Unknown
Tags
Unknown