MFC r260181:

Fix build on platforms where atomic_swap_64 is not available.
This commit is contained in:
delphij 2014-03-20 00:05:23 +00:00
parent e5948aa6c8
commit 5cc12e5eaf

View File

@ -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)