From: Josh Durgin Date: Tue, 22 Nov 2011 02:16:52 +0000 (-0800) Subject: rbd: remove conditional snapid parameters X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b06e6a6be796bc365a19b0ac5176b553c13abf2f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rbd: remove conditional snapid parameters The snapid parameters passed to rbd_do_op() and rbd_req_sync_op() are now always either a valid snapid or an explicit CEPH_NOSNAP. [elder@dreamhost.com: Rephrased the description] Signed-off-by: Josh Durgin Reviewed-by: Alex Elder Reviewed-by: Yehuda Sadeh --- diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index c1650bdf2f6e..4a0a829f79d1 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -1152,7 +1152,7 @@ static int rbd_req_read(struct request *rq, int coll_index) { return rbd_do_op(rq, rbd_dev, NULL, - (snapid ? snapid : CEPH_NOSNAP), + snapid, CEPH_OSD_OP_READ, CEPH_OSD_FLAG_READ, 2, @@ -1171,7 +1171,7 @@ static int rbd_req_sync_read(struct rbd_device *dev, u64 *ver) { return rbd_req_sync_op(dev, NULL, - (snapid ? snapid : CEPH_NOSNAP), + snapid, CEPH_OSD_OP_READ, CEPH_OSD_FLAG_READ, NULL,