Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-9859 libcfs: use round_up directly
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
batch.c
diff --git
a/lustre/ptlrpc/batch.c
b/lustre/ptlrpc/batch.c
index
59050ac
..
1684b31
100644
(file)
--- a/
lustre/ptlrpc/batch.c
+++ b/
lustre/ptlrpc/batch.c
@@
-134,16
+134,13
@@
static int batch_prep_update_req(struct batch_update_head *head,
struct batch_update_buffer *buf;
struct but_update_header *buh;
struct but_update_buffer *bub;
struct batch_update_buffer *buf;
struct but_update_header *buh;
struct but_update_buffer *bub;
+ int repsize = head->buh_repsize;
int page_count = 0;
int total = 0;
int page_count = 0;
int total = 0;
- int repsize;
int rc;
ENTRY;
int rc;
ENTRY;
-
- repsize = head->buh_repsize +
- cfs_size_round(offsetof(struct batch_update_reply,
- burp_repmsg[0]));
+ repsize += round_up(offsetof(struct batch_update_reply, burp_repmsg[0]), 8);
if (repsize < OUT_UPDATE_REPLY_SIZE)
repsize = OUT_UPDATE_REPLY_SIZE;
if (repsize < OUT_UPDATE_REPLY_SIZE)
repsize = OUT_UPDATE_REPLY_SIZE;