summaryrefslogtreecommitdiff
path: root/libtreefs
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-11-01 15:00:51 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-11-01 15:00:51 +0100
commitccfdec8708430e4255b4d24424aafbd0d5f4c32d (patch)
treec3c2f2b7d00b5ebef30ebeefe73e57fa4a07d76a /libtreefs
parent14ca7bbf803d0b6f9defc28db9021dcb2e65384a (diff)
Add missing spinlock initializers
Thanks Agustina Arzille for the report * ext2fs/ext2fs.h (global_lock, modified_global_blocks_lock): Declare extern * ext2fs/ext2fs.c (global_lock, modified_global_blocks_lock): Define and initialize to PTHREAD_SPINLOCK_INITIALIZER. * libtreefs/xinl.c (treefs_node_refcnt_lock): Likewise.
Diffstat (limited to 'libtreefs')
-rw-r--r--libtreefs/xinl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libtreefs/xinl.c b/libtreefs/xinl.c
index fe83e5a3..ca7073a4 100644
--- a/libtreefs/xinl.c
+++ b/libtreefs/xinl.c
@@ -1,3 +1,5 @@
#define TREEFS_DEFINE_EI
#include "treefs.h"
#include "mig-decls.h"
+
+pthread_spinlock_t treefs_node_refcnt_lock = PTHREAD_SPINLOCK_INITIALIZER;