Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jan 2014 03:24:44 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260181 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201401020324.s023Oi5T080528@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Thu Jan  2 03:24:44 2014
New Revision: 260181
URL: http://svnweb.freebsd.org/changeset/base/260181

Log:
  Fix build on platforms where atomic_swap_64 is not available.

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfeature.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfeature.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfeature.c	Thu Jan  2 02:20:10 2014	(r260180)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfeature.c	Thu Jan  2 03:24:44 2014	(r260181)
@@ -312,8 +312,12 @@ feature_sync(spa_t *spa, zfeature_info_t
 	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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401020324.s023Oi5T080528>