rbd: simplify snap_by_name() interface
authorAlex Elder <elder@inktank.com>
Thu, 30 Aug 2012 19:42:15 +0000 (14:42 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:51 +0000 (14:30 -0500)
commit8836b995fd192dba23d312d2a4fba68dd8ca7183
treea04165a494e9327bf052b7ed25f94ba86a28e057
parent4e1105a299adf7ac421d42a8be05205f51610f3c
rbd: simplify snap_by_name() interface

There is only one caller of snap_by_name(), and it passes two values
to be assigned, both of which are found within an rbd device
structure.

Change the interface so it just passes the address of the rbd_dev,
and make the assignments to its fields directly.

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