Print this page
5045 use atomic_{inc,dec}_* instead of atomic_add_*
@@ -180,11 +180,11 @@
};
kstat_named_t *rdmarsstat_ptr = (kstat_named_t *)&rdmarsstat;
uint_t rdmarsstat_ndata = sizeof (rdmarsstat) / sizeof (kstat_named_t);
-#define RSSTAT_INCR(x) atomic_add_64(&rdmarsstat.x.value.ui64, 1)
+#define RSSTAT_INCR(x) atomic_inc_64(&rdmarsstat.x.value.ui64)
/*
* Create a transport record.
* The transport record, output buffer, and private data structure
* are allocated. The output buffer is serialized into using xdrmem.
* There is one transport record per user process which implements a