]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
rbd: assume single op in a request
authorAlex Elder <elder@inktank.com>
Wed, 14 Nov 2012 03:11:15 +0000 (21:11 -0600)
committerAlex Elder <elder@inktank.com>
Wed, 28 Nov 2012 16:07:06 +0000 (10:07 -0600)
commit53d1d09d0b13be352f83d7dfd8e43f9289d8a325
tree0b57136bac358e0aaf32f0f21188aeb3af9933ae
parentf93ca50e6aeea78e41b4c7f6d62b881361d1ed47
rbd: assume single op in a request

We now know that every of rbd_req_sync_op() passes an array of
exactly one operation, as evidenced by all callers passing 1 as its
num_op argument.  So get rid of that argument, assuming a single op.

Similarly, we now know that all callers of rbd_do_request() pass 1
as the num_op value, so that parameter can be eliminated as well.

Signed-off-by: Alex Elder <elder@inktank.com>
drivers/block/rbd.c