Whamcloud - gitweb
LU-3539 protocol: Change UPDATE_OBJ RPC format
[fs/lustre-release.git] / lustre / include / lprocfs_status.h
index ffb85ca..978b10c 100644 (file)
@@ -302,9 +302,9 @@ static inline int opcode_offset(__u32 opc) {
                         OPC_RANGE(LDLM) +
                         OPC_RANGE(MDS) +
                         OPC_RANGE(OST));
-       } else if (opc < UPDATE_LAST_OPC) {
+       } else if (opc < OUT_UPDATE_LAST_OPC) {
                /* update opcode */
-               return (opc - UPDATE_FIRST_OPC +
+               return (opc - OUT_UPDATE_FIRST_OPC +
                        OPC_RANGE(FLD) +
                        OPC_RANGE(SEC) +
                        OPC_RANGE(SEQ) +
@@ -318,7 +318,7 @@ static inline int opcode_offset(__u32 opc) {
        } else if (opc < LFSCK_LAST_OPC) {
                /* LFSCK opcode */
                return (opc - LFSCK_FIRST_OPC +
-                       OPC_RANGE(UPDATE) +
+                       OPC_RANGE(OUT_UPDATE) +
                        OPC_RANGE(FLD) +
                        OPC_RANGE(SEC) +
                        OPC_RANGE(SEQ) +
@@ -346,7 +346,7 @@ static inline int opcode_offset(__u32 opc) {
                             OPC_RANGE(SEQ)  + \
                             OPC_RANGE(SEC)  + \
                            OPC_RANGE(FLD)  + \
-                           OPC_RANGE(UPDATE) + \
+                           OPC_RANGE(OUT_UPDATE) + \
                            OPC_RANGE(LFSCK))
 
 #define EXTRA_MAX_OPCODES ((PTLRPC_LAST_CNTR - PTLRPC_FIRST_CNTR)  + \