]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2560c9ef8bfd4b7b949b601c977ff8bb7fc3b420
treebd9718b7d7648e80f64e09d6ee483d262815b340
parentb65db59fe410bcc028e1ddcea53b4da00ba350ac
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