HomeFreeBSD

Do not use atomic_swap_int(9), it is not available on all

Description

Do not use atomic_swap_int(9), it is not available on all
architectures. Atomic_cmpset_int(9) is a direct replacement, due to
loop. The change fixes arm, arm64, mips an sparc64, which lack
atomic_swap().

Suggested and reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

Details

Provenance
kibAuthored on
Parents
rS285615: fix the docs, the number of frags per inode (NFPI) changed in r228794
Branches
Unknown
Tags
Unknown