From: Alex Elder Date: Fri, 31 Aug 2012 22:29:55 +0000 (-0500) Subject: rbd: activate v2 image support X-Git-Tag: MMI-PSA29.97-13-9~15245^2~66 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=35152979e6181b1fbb4b61c3ff641c14df53ad66;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git rbd: activate v2 image support Now that v2 images support is fully implemented, have rbd_dev_v2_probe() return 0 to indicate a successful probe. (Note that an image that implements layering will fail the probe early because of the feature chekc.) Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 0f260a6e97c4..8f56d37637a7 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -3014,7 +3014,7 @@ static int rbd_dev_v2_probe(struct rbd_device *rbd_dev) dout("discovered version 2 image, header name is %s\n", rbd_dev->header_name); - return -ENOTSUPP; + return 0; out_err: kfree(rbd_dev->header_name); rbd_dev->header_name = NULL;