HomeFreeBSD

vfs: add vrefact, to be used when the vnode has to be already active

Description

vfs: add vrefact, to be used when the vnode has to be already active

This allows blind increment of relevant counters which under contention
is cheaper than inc-not-zero loops at least on amd64.

Use it in some of the places which are guaranteed to see already active
vnodes.

Reviewed by: kib (previous version)

Details

Provenance
mjgAuthored on
Reviewer
kib
Parents
rS309892: Fix gic_cpu_mask() calculation in ARM GIC
Branches
Unknown
Tags
Unknown