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

*** 1561,1571 **** page_ctr_add_internal(mnode, mtype, pp, flags); /* * Update cage freemem counter */ ! atomic_add_long(&kcage_freemem, 1); } #else /* __sparc */ /* ARGSUSED */ void --- 1561,1571 ---- page_ctr_add_internal(mnode, mtype, pp, flags); /* * Update cage freemem counter */ ! atomic_inc_ulong(&kcage_freemem); } #else /* __sparc */ /* ARGSUSED */ void
*** 4115,4125 **** 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) #else /* REPL_PAGE_STATS */ #define REPL_STAT_INCR(v) #endif /* REPL_PAGE_STATS */ int pgrppgcp; --- 4115,4125 ---- uint_t nnopage; uint_t nhashout; uint_t nnofree; uint_t nnext_pp; } repl_page_stats; ! #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;