rbd: encapsulate removing parent devices
authorAlex Elder <elder@inktank.com>
Fri, 26 Apr 2013 20:44:36 +0000 (15:44 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:19:50 +0000 (21:19 -0700)
commit05a46afdc7f0f73d42dcecd8ee80f9558b4c38f7
treed672f8caa4264b9c353599c2320915f5571f5920
parent124afba25d58e2b52d7d4bad993065572a28d57f
rbd: encapsulate removing parent devices

Encapsulate the code that removes an rbd device's parent images into
a new function, rbd_dev_remove_parent().

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