Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixes from b_port_step needed to get HEAD to build.
[fs/lustre-release.git]
/
lustre
/
include
/
liblustre.h
diff --git
a/lustre/include/liblustre.h
b/lustre/include/liblustre.h
index
6573517
..
36d44cc
100644
(file)
--- a/
lustre/include/liblustre.h
+++ b/
lustre/include/liblustre.h
@@
-667,6
+667,7
@@
static inline void del_timer(struct timer_list *l)
typedef struct { volatile int counter; } atomic_t;
+#define ATOMIC_INIT(i) { (i) }
#define atomic_read(a) ((a)->counter)
#define atomic_set(a,b) do {(a)->counter = b; } while (0)
#define atomic_dec_and_test(a) ((--((a)->counter)) == 0)