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/spa.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/spa.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c index f1c745f..3889e5a 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c @@ -1873,9 +1873,9 @@ spa_load_verify_done(zio_t *zio) if (error) { if ((BP_GET_LEVEL(bp) != 0 || DMU_OT_IS_METADATA(type)) && type != DMU_OT_INTENT_LOG) - atomic_add_64(&sle->sle_meta_count, 1); + atomic_inc_64(&sle->sle_meta_count); else - atomic_add_64(&sle->sle_data_count, 1); + atomic_inc_64(&sle->sle_data_count); } zio_data_buf_free(zio->io_data, zio->io_size); |