From 563b50fae0b513a75b9b2a67ff8269835a3239cd Mon Sep 17 00:00:00 2001 From: fanyong Date: Wed, 21 Jan 2009 08:56:10 +0000 Subject: [PATCH] Branch b1_8 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 | 2 +- lustre/ptlrpc/lproc_ptlrpc.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/include/lprocfs_status.h b/lustre/include/lprocfs_status.h index 69cee95..d384f1c 100644 --- a/lustre/include/lprocfs_status.h +++ b/lustre/include/lprocfs_status.h @@ -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) + diff --git a/lustre/ptlrpc/lproc_ptlrpc.c b/lustre/ptlrpc/lproc_ptlrpc.c index 12c996f..a62c6b2 100644 --- a/lustre/ptlrpc/lproc_ptlrpc.c +++ b/lustre/ptlrpc/lproc_ptlrpc.c @@ -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" }, -- 1.8.3.1