X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Fptlrpc%2Fbatch.c;h=1684b315b0ac479991ae631e8c2cc45c93619d99;hb=20683c0d6c3e7d04293238d0a68e862c9bc46d40;hp=59050acdbb8fe7be7a92617ce0b4380e53fc613e;hpb=0e6648940171c60cbaa295f54af1093232e66430;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/batch.c b/lustre/ptlrpc/batch.c index 59050ac..1684b31 100644 --- 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; + int repsize = head->buh_repsize; int page_count = 0; int total = 0; - int repsize; 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;