]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d5067fa599fab0e33cf73c1766825eec10202af
treea04165a494e9327bf052b7ed25f94ba86a28e057
parente0af30f9f45e4c29109b9ebf299df9a2d89439d3
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