]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
rbd: snapc is unused in rbd_req_sync_read()
authorAlex Elder <elder@inktank.com>
Thu, 19 Jul 2012 14:09:27 +0000 (09:09 -0500)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:15:49 +0000 (18:15 -0700)
The "snapc" parameter to in rbd_req_sync_read() is not used, so
get rid of it.

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

index fe7a9e15b6f2b20573136201016b8d03da455aa1..eed58e99e18d930df297535519d886ba25ea6b05 100644 (file)
@@ -1169,7 +1169,6 @@ static int rbd_req_read(struct request *rq,
  * Request sync osd read
  */
 static int rbd_req_sync_read(struct rbd_device *rbd_dev,
-                         struct ceph_snap_context *snapc,
                          u64 snapid,
                          const char *object_name,
                          u64 ofs, u64 len,
@@ -1619,7 +1618,7 @@ static int rbd_read_header(struct rbd_device *rbd_dev,
                        return -ENOMEM;
 
                rc = rbd_req_sync_read(rbd_dev,
-                                      NULL, CEPH_NOSNAP,
+                                      CEPH_NOSNAP,
                                       rbd_dev->header_name,
                                       0, len,
                                       (char *)dh, &ver);