HomeFreeBSD

MFC r309893,r309929:

Description

MFC r309893,r309929:

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.

vfs: use vrefact in getcwd and fchdir

Details

Provenance
mjgAuthored on
Parents
rS310952: MIB-II: use strlcpy instead of strcpy when copying {descr,name}
Branches
Unknown
Tags
Unknown