rbd: encapsulate probing for 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:49 +0000 (21:19 -0700)
commit124afba25d58e2b52d7d4bad993065572a28d57f
tree3384e0905f24cee6dc06c04df25fa096e5ea49bb
parentb5156e76da01c23e14e962594553f1735b1db298
rbd: encapsulate probing for parent devices

Encapsulate the code that probes for an rbd device's parent images
into a new function, rbd_dev_probe_parent().

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