HomeFreeBSD

vfs: Fix vop_stdis_text()

Description

vfs: Fix vop_stdis_text()

atomic(9) primitives are documented as operating on unsigned types.
Here, we need a cast to avoid a tautological comparison.

Add a regression test for access(2), which was affected by the bug.

Reported by: NetApp
Reviewed by: kib
Fixes: e511bd1406fa ("vfs: fully lockless v_writecount adjustment")
MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D47672

Details

Provenance
markjAuthored on Nov 19 2024, 9:03 PM
Reviewer
rGe511bd1406fa: vfs: fully lockless v_writecount adjustment
Differential Revision
D47672: vfs: Fix vop_stdis_text()
Parents
rG9ab59e900c1d: daemon: tests: add a test for missed SIGTERM
Branches
Unknown
Tags
Unknown