Print this page
5045 use atomic_{inc,dec}_* instead of atomic_add_*

@@ -1561,11 +1561,11 @@
         page_ctr_add_internal(mnode, mtype, pp, flags);
 
         /*
          * Update cage freemem counter
          */
-        atomic_add_long(&kcage_freemem, 1);
+        atomic_inc_ulong(&kcage_freemem);
 }
 #else   /* __sparc */
 
 /* ARGSUSED */
 void

@@ -4115,11 +4115,11 @@
         uint_t  nnopage;
         uint_t  nhashout;
         uint_t  nnofree;
         uint_t  nnext_pp;
 } repl_page_stats;
-#define REPL_STAT_INCR(v)       atomic_add_32(&repl_page_stats.v, 1)
+#define REPL_STAT_INCR(v)       atomic_inc_32(&repl_page_stats.v)
 #else /* REPL_PAGE_STATS */
 #define REPL_STAT_INCR(v)
 #endif /* REPL_PAGE_STATS */
 
 int     pgrppgcp;