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_label.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_label.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c index 014b851..70c186f 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c @@ -992,7 +992,7 @@ vdev_uberblock_sync_done(zio_t *zio) uint64_t *good_writes = zio->io_private; if (zio->io_error == 0 && zio->io_vd->vdev_top->vdev_ms_array != 0) - atomic_add_64(good_writes, 1); + atomic_inc_64(good_writes); } /* @@ -1067,7 +1067,7 @@ vdev_label_sync_done(zio_t *zio) uint64_t *good_writes = zio->io_private; if (zio->io_error == 0) - atomic_add_64(good_writes, 1); + atomic_inc_64(good_writes); } /* |