]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/spa.c
Illumos 5045 - use atomic_{inc,dec}_* instead of atomic_add_*
authorJosef 'Jeff' Sipek <josef.sipek@nexenta.com>
Thu, 14 Jan 2016 00:37:41 +0000 (16:37 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 15 Jan 2016 23:38:36 +0000 (15:38 -0800)
commitbc89ac8479c0b265c539b579fda2bef1997d423c
treeb3133293ba8520485062165fae5b56d3bf97108b
parente3e670d0061ff121293dafb37d1f14a7069d49d5
Illumos 5045 - use atomic_{inc,dec}_* instead of atomic_add_*

5045 use atomic_{inc,dec}_* instead of atomic_add_*
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Robert Mustacchi <rm@joyent.com>

References:
  https://www.illumos.org/issues/5045
  https://github.com/illumos/illumos-gate/commit/1a5e258

Porting notes:
- All changes to non-ZFS files dropped.
- Changes to zfs_vfsops.c dropped because they were Illumos specific.

Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4220
include/sys/refcount.h
module/zfs/dbuf.c
module/zfs/fm.c
module/zfs/spa.c
module/zfs/vdev_cache.c
module/zfs/vdev_label.c
module/zfs/zio_inject.c