]> git.karo-electronics.de Git - linux-beck.git/commitdiff
UBIFS: make the dbg_lock spinlock static
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 18 Jan 2012 14:06:17 +0000 (16:06 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 29 Feb 2012 14:10:20 +0000 (16:10 +0200)
Remove the usage of the 'dbg_lock' spinlock from 'dbg_err()' and make
it static.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
fs/ubifs/debug.c
fs/ubifs/debug.h

index 305062886f17f7a3cc6f92acd9575b03d8ab35f7..1934084e20884ba692b4fd9cea2ce58c8d6e4c4c 100644 (file)
@@ -36,7 +36,7 @@
 
 #ifdef CONFIG_UBIFS_FS_DEBUG
 
-DEFINE_SPINLOCK(dbg_lock);
+static DEFINE_SPINLOCK(dbg_lock);
 
 static const char *get_key_fmt(int fmt)
 {
index ad1a6fee6010ba9d17c9e2e0e8616734a9960b04..9f717655df18a3e908aff028b3f3c7cae36ef94e 100644 (file)
@@ -164,9 +164,7 @@ struct ubifs_global_debug_info {
 #define dbg_dump_stack() dump_stack()
 
 #define dbg_err(fmt, ...) do {                                                 \
-       spin_lock(&dbg_lock);                                                  \
        ubifs_err(fmt, ##__VA_ARGS__);                                         \
-       spin_unlock(&dbg_lock);                                                \
 } while (0)
 
 #define ubifs_dbg_msg(type, fmt, ...) \
@@ -217,7 +215,6 @@ struct ubifs_global_debug_info {
 /* Additional recovery messages */
 #define dbg_rcvry(fmt, ...) ubifs_dbg_msg("rcvry", fmt, ##__VA_ARGS__)
 
-extern spinlock_t dbg_lock;
 extern struct ubifs_global_debug_info ubifs_dbg;
 
 static inline int dbg_is_chk_gen(const struct ubifs_info *c)