aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs
diff options
context:
space:
mode:
authorRoel Kluin <12o3l@tiscali.nl>2007-10-17 02:30:25 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:43:01 -0400
commitf7a75f0a40073601a0fb509290019d5f3f32b94b (patch)
tree61b4e44ec385b17fe0177fbece0c02d7ad1e882f /fs/sysfs
parentd68c9d6ae8f1fdae7d998158adc5ee106a2f8ce6 (diff)
spin_lock_unlocked cleanups
Replace some SPIN_LOCK_UNLOCKED with DEFINE_SPINLOCK Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Acked-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/sysfs')
-rw-r--r--fs/sysfs/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index d3118d482935..7a8ce9e98b32 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -24,9 +24,9 @@
24 24
25DEFINE_MUTEX(sysfs_mutex); 25DEFINE_MUTEX(sysfs_mutex);
26DEFINE_MUTEX(sysfs_rename_mutex); 26DEFINE_MUTEX(sysfs_rename_mutex);
27spinlock_t sysfs_assoc_lock = SPIN_LOCK_UNLOCKED; 27DEFINE_SPINLOCK(sysfs_assoc_lock);
28 28
29static spinlock_t sysfs_ino_lock = SPIN_LOCK_UNLOCKED; 29static DEFINE_SPINLOCK(sysfs_ino_lock);
30static DEFINE_IDA(sysfs_ino_ida); 30static DEFINE_IDA(sysfs_ino_ida);
31 31
32/** 32/**