Print this page
5045 use atomic_{inc,dec}_* instead of atomic_add_*
*** 62,72 ****
void
rdsv3_inc_addref(struct rdsv3_incoming *inc)
{
RDSV3_DPRINTF4("rdsv3_inc_addref",
"addref inc %p ref %d", inc, atomic_get(&inc->i_refcount));
! atomic_add_32(&inc->i_refcount, 1);
}
void
rdsv3_inc_put(struct rdsv3_incoming *inc)
{
--- 62,72 ----
void
rdsv3_inc_addref(struct rdsv3_incoming *inc)
{
RDSV3_DPRINTF4("rdsv3_inc_addref",
"addref inc %p ref %d", inc, atomic_get(&inc->i_refcount));
! atomic_inc_32(&inc->i_refcount);
}
void
rdsv3_inc_put(struct rdsv3_incoming *inc)
{