]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: fix __read_mostly attributes
authorSage Weil <sage@newdream.net>
Wed, 4 Mar 2009 19:51:07 +0000 (11:51 -0800)
committerSage Weil <sage@newdream.net>
Wed, 4 Mar 2009 19:51:07 +0000 (11:51 -0800)
15 files changed:
src/kernel/addr.c
src/kernel/caps.c
src/kernel/ceph_tools.c
src/kernel/dir.c
src/kernel/export.c
src/kernel/file.c
src/kernel/inode.c
src/kernel/ioctl.c
src/kernel/mds_client.c
src/kernel/mdsmap.c
src/kernel/mon_client.c
src/kernel/osd_client.c
src/kernel/osdmap.c
src/kernel/snap.c
src/kernel/super.c

index ef42da97fe1b9c2a35e4a6fe71521d926450d150..f6e4119e538085339072e80907fe43bcb4a4cf0a 100644 (file)
@@ -8,7 +8,7 @@
 #include <linux/task_io_accounting_ops.h>
 
 #include "ceph_debug.h"
-int ceph_debug_addr = -1 __read_mostly;
+int ceph_debug_addr __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_ADDR
 #define DOUT_VAR ceph_debug_addr
 #include "super.h"
index 1abec49558345a63d46d7cf186ac4c5f54dade95..395f06537f8b3bf3878f149b3766adfb18208bdd 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_caps = -1 __read_mostly;
+int ceph_debug_caps __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_CAPS
 #define DOUT_VAR ceph_debug_caps
 #include "super.h"
index 5be096b6c04f0e8c51ba15f8166b2da1a701b34a..20fc83abe7c5da85554fd3ef7abd10e4a9eca3cd 100644 (file)
@@ -8,7 +8,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_tools = -1 __read_mostly;
+int ceph_debug_tools __read_mostly = -1;
 #define DOUT_VAR ceph_debug_tools
 #define DOUT_MASK DOUT_MASK_TOOLS
 #include "super.h"
index 004040eb3b5bf6569a8fa443551302d0d17b8bcd..4c8a52304c2ba8de027aaff99509c727a9bdb0cb 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_dir = -1 __read_mostly;
+int ceph_debug_dir __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_DIR
 #define DOUT_VAR ceph_debug_dir
 #include "super.h"
index 8749565aec8a46db5c57eb9469466e0f25e4be93..6c5b484768d94151bab29519ec05994f85081ffd 100644 (file)
@@ -3,7 +3,7 @@
 #include "super.h"
 #include "ceph_debug.h"
 
-int ceph_debug_export = -1 __read_mostly;
+int ceph_debug_export __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_EXPORT
 #define DOUT_VAR ceph_debug_export
 
index 4ac7332639833346a7ed12968e93efebbd2a69be..9fa37592f2278f7e2330d926008881e517530c4f 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_file = -1 __read_mostly;
+int ceph_debug_file __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_FILE
 #define DOUT_VAR ceph_debug_file
 #include "super.h"
index 0462875533af3b0131504929b4eef4d643abbd78..3e5c08e2ea1bb2aa212303a1188169cd4449a0c9 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_inode = -1 __read_mostly;
+int ceph_debug_inode __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_INODE
 #define DOUT_VAR ceph_debug_inode
 #include "super.h"
index e032ac485ac4d97fcafbd0264c30d939e0888afb..55c992e49f058e650310e4b9278a258a441e3dd5 100644 (file)
@@ -2,7 +2,7 @@
 #include "super.h"
 #include "ceph_debug.h"
 
-int ceph_debug_ioctl = -1 __read_mostly;
+int ceph_debug_ioctl __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_IOCTL
 #define DOUT_VAR ceph_debug_ioctl
 
index bedc423f9980bae1c11fcd858177ffcbcf3f064b..050d72ada42b9e1206e15e19213cac81df92714e 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_mdsc = -1 __read_mostly;
+int ceph_debug_mdsc __read_mostly = -1;
 #define DOUT_VAR ceph_debug_mdsc
 #define DOUT_MASK DOUT_MASK_MDSC
 #include "super.h"
index 531ef1f7a2f8573062349648a8641c2424cc4964..87d38702203f6d640535b1e38482e522ccbaccac 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_mdsmap = -1 __read_mostly;
+int ceph_debug_mdsmap __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_MDSMAP
 #define DOUT_VAR ceph_debug_mdsmap
 #include "super.h"
index 96d9fe1a2ced814c31398b085e2517de34436acb..085e8ecdc040d654176361ae4dbfcd1d8837af7f 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_mon = -1 __read_mostly;
+int ceph_debug_mon __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_MON
 #define DOUT_VAR ceph_debug_mon
 #include "super.h"
index 4dedcac6dbaeabf134bd0f97498eb66a65413558..ce3a936e56eca5a9a2802dc0366b348cb340aab2 100644 (file)
@@ -7,7 +7,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_osdc = -1 __read_mostly;
+int ceph_debug_osdc __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_OSDC
 #define DOUT_VAR ceph_debug_osdc
 #include "super.h"
index 840254d958cd1e457ef4e22ea5ab27de4c6d9ddd..a783f7f75041c97c9d64a0b1b4c20472066a25d6 100644 (file)
@@ -8,7 +8,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_osdmap = -1 __read_mostly;
+int ceph_debug_osdmap __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_OSDMAP
 #define DOUT_VAR ceph_debug_osdmap
 
index c3b167e8b62c4cfd8027a44fd9859f78f16f41f7..98f6df6dc98c29000343d7975f44d5410d6ee1f1 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_snap = -1 __read_mostly;
+int ceph_debug_snap __read_mostly = -1;
 #define DOUT_MASK DOUT_MASK_SNAP
 #define DOUT_VAR ceph_debug_snap
 
index 091c6f7068fa197c9ac0f02e2368d008c14b1ef6..67396c1d03886f0ee480b2f899df08fd3445f1ca 100644 (file)
  * if the per-file debug level >= 0, then that overrides this  global
  * debug level.
  */
-int ceph_debug = 1 __read_mostly;
-int ceph_debug_mask = 0xffffffff __read_mostly;
+int ceph_debug __read_mostly = 1;
+int ceph_debug_mask __read_mostly = 0xffffffff;
 /* if true, send output to KERN_INFO (console) instead of KERN_DEBUG. */
 int ceph_debug_console __read_mostly;
-int ceph_debug_super = -1 __read_mostly;   /* for this file */
+int ceph_debug_super __read_mostly = -1;   /* for this file */
 
 #define DOUT_MASK DOUT_MASK_SUPER
 #define DOUT_VAR ceph_debug_super