Skip to contentSkip to conversation

fs/sysfs/dir.c: use DEFINE_SPINLOCK for spinlock definition

PATCH In review Matthias Kaehlcke 1 participant 1 message Oct 12, 2007 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 fs/sysfs/dir.c: use DEFINE_SPINLOCK for spinlock definition

fs/sysfs/dir.c: Define spinlock using DEFINE_SPINLOCK instead of assignment to SPIN_LOCK_UNLOCKED

--

fs/sysfs/dir.c +2 -2
index 83e76b3..94fd78f 100644
@@ -15,9 +15,9 @@
 #include "sysfs.h"
 
 DEFINE_MUTEX(sysfs_mutex);
-spinlock_t sysfs_assoc_lock = SPIN_LOCK_UNLOCKED;
+DEFINE_SPINLOCK(sysfs_assoc_lock);
 
-static spinlock_t sysfs_ino_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(sysfs_ino_lock);
 static DEFINE_IDA(sysfs_ino_ida);
 
 /**
Signature · 11 lines
Matthias Kaehlcke
Linux Application Developer
Barcelona

             If liberty means anything at all, it means the
           right to tell people what they do not want to hear
                            (George Orwell)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-