Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1db4e9b
)
fix typo.
author
shadow
<shadow>
Thu, 17 Apr 2008 12:28:50 +0000
(12:28 +0000)
committer
shadow
<shadow>
Thu, 17 Apr 2008 12:28:50 +0000
(12:28 +0000)
i=nikita
i=johann
lustre/include/liblustre.h
patch
|
blob
|
history
diff --git
a/lustre/include/liblustre.h
b/lustre/include/liblustre.h
index
a96bc33
..
4a89f50
100644
(file)
--- a/
lustre/include/liblustre.h
+++ b/
lustre/include/liblustre.h
@@
-706,7
+706,7
@@
typedef struct { volatile int counter; } atomic_t;
#define atomic_inc(a) (((a)->counter)++)
#define atomic_dec(a) do { (a)->counter--; } while (0)
#define atomic_add(b,a) do {(a)->counter += b;} while (0)
-#define atomic_add_return(n,a) ((a)->counter = n)
+#define atomic_add_return(n,a) ((a)->counter
+
= n)
#define atomic_inc_return(a) atomic_add_return(1,a)
#define atomic_sub(b,a) do {(a)->counter -= b;} while (0)
#define atomic_sub_return(n,a) ((a)->counter -= n)