rbd: define rbd_dev_{create,destroy}() helpers
authorAlex Elder <elder@inktank.com>
Fri, 26 Oct 2012 04:34:42 +0000 (23:34 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 1 Nov 2012 12:55:42 +0000 (07:55 -0500)
commitc53d589337e9a211413484a604c76072e8474dc0
treebd9718b7d7648e80f64e09d6ee483d262815b340
parentbd4ba6554dcbae652b8b27a44f5a7795c9f3178a
rbd: define rbd_dev_{create,destroy}() helpers

Encapsulate the creation/initialization and destruction of rbd
device structures.  The rbd_client and the rbd_spec structures
provided on creation hold references whose ownership is transferred
to the new rbd_device structure.

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