Message ID | 510162BD.20800@inktank.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Reviewed-by: Josh Durgin <josh.durgin@inktank.com> On 01/24/2013 08:35 AM, Alex Elder wrote: > Get rid rbd_req_sync_notify_ack() because it is no longer used. > As a result rbd_simple_req_cb() becomes unreferenced, so get rid > of that too. > > Signed-off-by: Alex Elder <elder@inktank.com> > --- > drivers/block/rbd.c | 33 --------------------------------- > 1 file changed, 33 deletions(-) > > diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c > index e2b6230..b952b2f 100644 > --- a/drivers/block/rbd.c > +++ b/drivers/block/rbd.c > @@ -1240,12 +1240,6 @@ done_err: > return ret; > } > > -static void rbd_simple_req_cb(struct ceph_osd_request *osd_req, > - struct ceph_msg *msg) > -{ > - ceph_osdc_put_request(osd_req); > -} > - > /* > * Do a synchronous ceph osd operation > */ > @@ -1322,32 +1316,6 @@ static void rbd_obj_request_complete(struct > rbd_obj_request *obj_request) > } > > /* > - * Request sync osd watch > - */ > -static int rbd_req_sync_notify_ack(struct rbd_device *rbd_dev, > - u64 ver, > - u64 notify_id) > -{ > - struct ceph_osd_req_op *op; > - int ret; > - > - op = rbd_osd_req_op_create(CEPH_OSD_OP_NOTIFY_ACK, notify_id, ver); > - if (!op) > - return -ENOMEM; > - > - ret = rbd_do_request(NULL, rbd_dev, NULL, CEPH_NOSNAP, > - rbd_dev->header_name, 0, 0, NULL, > - NULL, 0, > - CEPH_OSD_FLAG_READ, > - op, > - rbd_simple_req_cb, NULL); > - > - rbd_osd_req_op_destroy(op); > - > - return ret; > -} > - > -/* > * Synchronous osd object method call > */ > static int rbd_req_sync_exec(struct rbd_device *rbd_dev, > @@ -1866,7 +1834,6 @@ static void rbd_watch_cb(u64 ver, u64 notify_id, > u8 opcode, void *data) > rbd_warn(rbd_dev, "got notification but failed to " > " update snaps: %d\n", rc); > > - (void) rbd_req_sync_notify_ack; /* avoid a warning */ > rbd_obj_notify_ack_sync(rbd_dev, hver, notify_id); > } > -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index e2b6230..b952b2f 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -1240,12 +1240,6 @@ done_err: return ret; } -static void rbd_simple_req_cb(struct ceph_osd_request *osd_req, - struct ceph_msg *msg) -{ - ceph_osdc_put_request(osd_req); -} - /* * Do a synchronous ceph osd operation */ @@ -1322,32 +1316,6 @@ static void rbd_obj_request_complete(struct rbd_obj_request *obj_request) } /* - * Request sync osd watch - */ -static int rbd_req_sync_notify_ack(struct rbd_device *rbd_dev, - u64 ver, - u64 notify_id) -{ - struct ceph_osd_req_op *op; - int ret; - - op = rbd_osd_req_op_create(CEPH_OSD_OP_NOTIFY_ACK, notify_id, ver); - if (!op) - return -ENOMEM; - - ret = rbd_do_request(NULL, rbd_dev, NULL, CEPH_NOSNAP, - rbd_dev->header_name, 0, 0, NULL, - NULL, 0, - CEPH_OSD_FLAG_READ, - op, - rbd_simple_req_cb, NULL); - - rbd_osd_req_op_destroy(op); - - return ret; -} - -/* * Synchronous osd object method call */
Get rid rbd_req_sync_notify_ack() because it is no longer used. As a result rbd_simple_req_cb() becomes unreferenced, so get rid of that too. Signed-off-by: Alex Elder <elder@inktank.com> --- drivers/block/rbd.c | 33 --------------------------------- 1 file changed, 33 deletions(-) static int rbd_req_sync_exec(struct rbd_device *rbd_dev, @@ -1866,7 +1834,6 @@ static void rbd_watch_cb(u64 ver, u64 notify_id, u8 opcode, void *data) rbd_warn(rbd_dev, "got notification but failed to " " update snaps: %d\n", rc); - (void) rbd_req_sync_notify_ack; /* avoid a warning */ rbd_obj_notify_ack_sync(rbd_dev, hver, notify_id); }