MFC r260181:
Fix build on platforms where atomic_swap_64 is not available.
This commit is contained in:
parent
e5948aa6c8
commit
5cc12e5eaf
@ -312,8 +312,12 @@ feature_sync(spa_t *spa, zfeature_info_t *feature, uint64_t refcount,
|
||||
if (feature->fi_feature != SPA_FEATURE_NONE) {
|
||||
uint64_t *refcount_cache =
|
||||
&spa->spa_feat_refcount_cache[feature->fi_feature];
|
||||
#ifdef atomic_swap_64
|
||||
VERIFY3U(*refcount_cache, ==,
|
||||
atomic_swap_64(refcount_cache, refcount));
|
||||
#else
|
||||
*refcount_cache = refcount;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (refcount == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user