HomeFreeBSD

vfs: implement v_holdcnt/v_usecount manipulation using atomic ops

Description

vfs: implement v_holdcnt/v_usecount manipulation using atomic ops

Transitions 0->1 and 1->0 (which decide e.g. on putting the vnode on the free
list) of either counter are still guarded with vnode interlock.

Reviewed by: kib (earlier version)
Tested by: pho

Details

Provenance
mjgAuthored on
Reviewer
kib
Parents
rS285631: Split out the arm and armv6 parts of atomic.h to new files. While here use
Branches
Unknown
Tags
Unknown