aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-05-08 09:49:52 -0400
committerAlex Elder <elder@inktank.com>2013-05-08 21:17:00 -0400
commitc48f3f86e248b1649ad22151dd45ef2610101ed3 (patch)
tree0c4f37addcef26f68ba3e18a60b8c9af43a0e7bb /drivers/block
parent1f3ef78861ac4b510175e177899b9b5ba4bbed91 (diff)
rbd: kill rbd_img_request_get()
Get rid of rbd_img_request_get(), because it isn't used, and maybe won't ever be needed. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/rbd.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index e417704de8ca..51c45e793354 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -1357,13 +1357,6 @@ static void rbd_obj_request_put(struct rbd_obj_request *obj_request)
1357 kref_put(&obj_request->kref, rbd_obj_request_destroy); 1357 kref_put(&obj_request->kref, rbd_obj_request_destroy);
1358} 1358}
1359 1359
1360static void rbd_img_request_get(struct rbd_img_request *img_request)
1361{
1362 dout("%s: img %p (was %d)\n", __func__, img_request,
1363 atomic_read(&img_request->kref.refcount));
1364 kref_get(&img_request->kref);
1365}
1366
1367static void rbd_img_request_destroy(struct kref *kref); 1360static void rbd_img_request_destroy(struct kref *kref);
1368static void rbd_img_request_put(struct rbd_img_request *img_request) 1361static void rbd_img_request_put(struct rbd_img_request *img_request)
1369{ 1362{
@@ -1888,9 +1881,6 @@ static struct rbd_img_request *rbd_img_request_create(
1888 INIT_LIST_HEAD(&img_request->obj_requests); 1881 INIT_LIST_HEAD(&img_request->obj_requests);
1889 kref_init(&img_request->kref); 1882 kref_init(&img_request->kref);
1890 1883
1891 rbd_img_request_get(img_request); /* Avoid a warning */
1892 rbd_img_request_put(img_request); /* TEMPORARY */
1893
1894 dout("%s: rbd_dev %p %s %llu/%llu -> img %p\n", __func__, rbd_dev, 1884 dout("%s: rbd_dev %p %s %llu/%llu -> img %p\n", __func__, rbd_dev,
1895 write_request ? "write" : "read", offset, length, 1885 write_request ? "write" : "read", offset, length,
1896 img_request); 1886 img_request);