From 48b981a54b219e74173eb6ab8b08055fe399c538 Mon Sep 17 00:00:00 2001 From: bobijam <bobijam> Date: Tue, 12 Aug 2008 03:55:16 +0000 Subject: [PATCH] Branch HEAD b=16573 fix wrong stat index. --- lustre/ptlrpc/lproc_ptlrpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/ptlrpc/lproc_ptlrpc.c b/lustre/ptlrpc/lproc_ptlrpc.c index 8d61f3d522..8eb11fcae9 100644 --- a/lustre/ptlrpc/lproc_ptlrpc.c +++ b/lustre/ptlrpc/lproc_ptlrpc.c @@ -583,10 +583,10 @@ void ptlrpc_lprocfs_brw(struct ptlrpc_request *req, int bytes) idx = lustre_msg_get_opc(req->rq_reqmsg); switch (idx) { case OST_READ: - idx = BRW_READ_BYTES; + idx = BRW_READ_BYTES + PTLRPC_LAST_CNTR; break; case OST_WRITE: - idx = BRW_WRITE_BYTES; + idx = BRW_WRITE_BYTES + PTLRPC_LAST_CNTR; break; default: LASSERTF(0, "unsupported opcode %u\n", idx); -- GitLab