OSDN Git Service

rbd: pass num_op with ops array
authorAlex Elder <elder@inktank.com>
Wed, 14 Nov 2012 03:11:15 +0000 (21:11 -0600)
committerAlex Elder <elder@inktank.com>
Thu, 17 Jan 2013 22:34:57 +0000 (16:34 -0600)
commitd07c09589f533db9ab500ac38151bc9f3a4d0648
treec306cebf88a941891d860d1e1648f77c65d88b2f
parent54a5400721da7fa5a16cea151aade5bdfee74111
rbd: pass num_op with ops array

Add a num_op parameter to rbd_do_request() and rbd_req_sync_op() to
indicate the number of entries in the array.  The callers of these
functions always know how many entries are in the array, so just
pass that information down.

This is in anticipation of eliminating the extra zero-filled entry
in these ops arrays.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c