]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: drop rbd_do_op() opcode and flags
authorAlex Elder <elder@inktank.com>
Thu, 11 Oct 2012 01:59:29 +0000 (18:59 -0700)
committerAlex Elder <elder@inktank.com>
Fri, 26 Oct 2012 22:18:08 +0000 (17:18 -0500)
commit6e268294770569baa4938e314180538b9ab46b15
treeb50576687902d04a47ab1a9347f054a55b05ebce
parentdb066855d5a80902fbe63e3bf58e8b329b00b48a
rbd: drop rbd_do_op() opcode and flags

The only callers of rbd_do_op() are in rbd_rq_fn(), where call one
is used for writes and the other used for reads.  The request passed
to rbd_do_op() already encodes the I/O direction, and that
information can be used inside the function to set the opcode and
flags value (rather than passing them in as arguments).

So get rid of the opcode and flags arguments to rbd_do_op().

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