From 0a144dfe7aa59b3a2b2369a2194078aa21cc1227 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 8 Mar 2002 20:38:37 +0000 Subject: [PATCH] Tiny cleanup in preprw to match commitrw. --- lustre/osc/osc_request.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 839379c..2804474 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -328,10 +328,9 @@ int osc_brw_read(struct obd_conn *conn, obd_count num_oa, struct obdo **oa, size1 = num_oa * sizeof(ioo); pages = 0; - for (i = 0; i < num_oa; i++) { - size2 += oa_bufs[i] * sizeof(src); + for (i = 0; i < num_oa; i++) pages += oa_bufs[i]; - } + size2 = pages * sizeof(src); request = ptlrpc_prep_req(cl, OST_BRW, size1, NULL, size2, NULL); if (!request) { -- 1.8.3.1