Whamcloud - gitweb
Branch b1_8
authorfanyong <fanyong>
Wed, 21 Jan 2009 08:56:10 +0000 (08:56 +0000)
committerfanyong <fanyong>
Wed, 21 Jan 2009 08:56:10 +0000 (08:56 +0000)
b=17800
i=adilger
i=huanghua

Add missing ll_rpc_opcode_table entries for "MDS_WRITEPAGE" and "MDS_IS_SUBDIR".

lustre/include/lprocfs_status.h
lustre/ptlrpc/lproc_ptlrpc.c

index 69cee95..d384f1c 100644 (file)
@@ -224,7 +224,7 @@ static inline int opcode_offset(__u32 opc) {
                         (OST_LAST_OPC - OST_FIRST_OPC));
        } else if (opc < QUOTA_LAST_OPC) {
                 /* LQUOTA Opcode */
-                return (opc -  QUOTA_FIRST_OPC +
+                return (opc - QUOTA_FIRST_OPC +
                         (LLOG_LAST_OPC - LLOG_FIRST_OPC) +
                         (OBD_LAST_OPC - OBD_FIRST_OPC) +
                         (MGS_LAST_OPC - MGS_FIRST_OPC) +
index 12c996f..a62c6b2 100644 (file)
@@ -91,6 +91,8 @@ struct ll_rpc_opcode {
         { MDS_QUOTACTL,     "mds_quotactl" },
         { MDS_GETXATTR,     "mds_getxattr" },
         { MDS_SETXATTR,     "mds_setxattr" },
+        { MDS_WRITEPAGE,    "mds_writepage" },
+        { MDS_IS_SUBDIR,    "mds_is_subdir" },
         { LDLM_ENQUEUE,     "ldlm_enqueue" },
         { LDLM_CONVERT,     "ldlm_convert" },
         { LDLM_CANCEL,      "ldlm_cancel" },