]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: using special protocol mask for mds requests
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 29 Sep 2008 18:08:36 +0000 (11:08 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 29 Sep 2008 18:08:36 +0000 (11:08 -0700)
src/kernel/ceph_debug.h
src/kernel/mds_client.c
src/kernel/super.h

index f9b998279b2cff4f95328e0fd2ee9abf2c11298c..0bed8ae8cb3258816b0c6f0b07afc1dccd7851ed 100644 (file)
@@ -16,6 +16,7 @@
 #define DOUT_MASK_OSDMAP       0x00001000
 #define DOUT_MASK_SNAP         0x00002000
 #define DOUT_MASK_SUPER                0x00004000
+#define DOUT_MASK_PROTOCOL     0x00008000
 
 #endif
 
index 5537c7d010c52dbba42f0fe233dbf8b21d89a045..53d054a06690b871322f411aec451f12be389a87 100644 (file)
@@ -1018,7 +1018,7 @@ ceph_mdsc_create_request(struct ceph_mds_client *mdsc, int op,
                        dout(10, "create_request path2 %llx/%s\n",
                             ino2, path2);
        }
-       dout(10, "create_request op %d=%s -> %p\n", op,
+       dout_flag(10, DOUT_MASK_PROTOCOL, "create_request op %d=%s -> %p\n", op,
             ceph_mds_op_name(op), req);
 
        BUG_ON(p != end);
index 57a7f7c48aea8cf42767cb5c8270535311b20b2a..a636f1e2d1bd816be1a3984190b44fce8e70a8a4 100644 (file)
@@ -32,8 +32,8 @@ extern int ceph_debug_mask;
 
 #define CEPH_DUMP_ERROR_ALWAYS
 
-#define dout(x, args...) do {                                          \
-               if ((ceph_debug_mask & DOUT_MASK) &&                            \
+#define dout_flag(x, mask, args...) do {                                               \
+               if ((ceph_debug_mask & mask) &&                         \
                        ((DOUT_VAR >= 0 && x <= DOUT_VAR) ||                    \
                        (DOUT_VAR < 0 && x <= ceph_debug))) {           \
                        if (ceph_debug_console)                         \
@@ -43,6 +43,8 @@ extern int ceph_debug_mask;
                }                                                       \
        } while (0)
 
+#define dout(x, args...) dout_flag(x, DOUT_MASK, args)
+
 #ifdef CEPH_DUMP_ERROR_ALWAYS
 #define derr(x, args...) do {                                          \
                printk(KERN_ERR "ceph: " args); \