diff options
author | delphij <delphij@FreeBSD.org> | 2014-09-03 08:18:09 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-09-03 08:18:09 +0000 |
commit | ed7e55776ae3561e3f95952049f99da35794b048 (patch) | |
tree | 8919d7fa26b31236e1e9396e7ba32c362a8c2688 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_cache.c | |
parent | 65d8a133498f82ccd1f62dacfac6a9fae6d05a25 (diff) | |
download | FreeBSD-src-ed7e55776ae3561e3f95952049f99da35794b048.zip FreeBSD-src-ed7e55776ae3561e3f95952049f99da35794b048.tar.gz |
MFC r270247: MFV r270195:
Illumos issue:
5045 use atomic_{inc,dec}_* instead of atomic_add_*
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_cache.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_cache.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_cache.c index 2ad15fe..50d8593 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_cache.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_cache.c @@ -114,7 +114,7 @@ static vdc_stats_t vdc_stats = { { "misses", KSTAT_DATA_UINT64 } }; -#define VDCSTAT_BUMP(stat) atomic_add_64(&vdc_stats.stat.value.ui64, 1); +#define VDCSTAT_BUMP(stat) atomic_inc_64(&vdc_stats.stat.value.ui64); static int vdev_cache_offset_compare(const void *a1, const void *a2) |