]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
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>
Mon, 19 Nov 2012 23:37:51 +0000 (17:37 -0600)
commitbbc352a7ba19525137ab6e2ef2b09176a1249893
tree6b93ea5e9ea0d1051ad9d9850a8ab96ef5627280
parent5c3ade2f8132b20c04b23bb7f97c072a34b9a797
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>
drivers/block/rbd.c