Skip to content

Commit

Permalink
rbd: snapc is unused in rbd_req_sync_read()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Elder authored and Sage Weil committed Jul 31, 2012
1 parent de71a29 commit 9a5d690
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9a5d690

Please sign in to comment.