From 4a139d75e57fab615dd4518b28583f37db6b4cdc Mon Sep 17 00:00:00 2001
From: shadow <shadow>
Date: Thu, 17 Apr 2008 12:30:05 +0000
Subject: [PATCH] fix typo. i=nikita i=johann

---
 lustre/include/liblustre.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lustre/include/liblustre.h b/lustre/include/liblustre.h
index 2eb3b8d981..64039f03e4 100644
--- a/lustre/include/liblustre.h
+++ b/lustre/include/liblustre.h
@@ -697,7 +697,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)
-- 
GitLab