Linux: correct use of atomic_add and atomic_sub functions
authorMarc Dionne <marc.c.dionne@gmail.com>
Sun, 3 Oct 2010 01:02:23 +0000 (21:02 -0400)
committerDerrick Brashear <shadow@dementia.org>
Sun, 3 Oct 2010 02:37:30 +0000 (19:37 -0700)
commit3940e686a880410b9001786734d158411782a965
treebe500c17c855200597b2a99f74a46227ae96b546
parentfab6c9db2fb6418c1c4ebf32e441e0d2bdb9d817
Linux: correct use of atomic_add and atomic_sub functions

The rx_atomic_add and rx_atomic_sub functions have arguments
reversed compared to the linux atomic_add and atomic_sub.

Adjust the macros to flip the arguments when calling them

Change-Id: I6d58c8f0ac8ccf09e62c9d3921b9f3ae50ca94c9
Reviewed-on: http://gerrit.openafs.org/2889
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/rx/rx_atomic.h