Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcebc8c
)
Tiny cleanup in preprw to match commitrw.
author
adilger
<adilger>
Fri, 8 Mar 2002 20:38:37 +0000
(20:38 +0000)
committer
adilger
<adilger>
Fri, 8 Mar 2002 20:38:37 +0000
(20:38 +0000)
lustre/osc/osc_request.c
patch
|
blob
|
history
diff --git
a/lustre/osc/osc_request.c
b/lustre/osc/osc_request.c
index
839379c
..
2804474
100644
(file)
--- 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) {