Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2014 00:05:23 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r263401 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201403200005.s2K05NwE013175@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Thu Mar 20 00:05:23 2014
New Revision: 263401
URL: http://svnweb.freebsd.org/changeset/base/263401

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

Modified:
  stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfeature.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfeature.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfeature.c	Thu Mar 20 00:02:14 2014	(r263400)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfeature.c	Thu Mar 20 00:05:23 2014	(r263401)
@@ -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?201403200005.s2K05NwE013175>