提交 9a5d690b 编写于 作者: A Alex Elder 提交者: Sage Weil

rbd: snapc is unused in rbd_req_sync_read()

The "snapc" parameter to in rbd_req_sync_read() is not used, so
get rid of it.
Reported-by: NJosh Durgin <josh.durgin@inktank.com>
Signed-off-by: NAlex Elder <elder@inktank.com>
Reviewed-by: NJosh Durgin <josh.durgin@inktank.com>
上级 de71a297
...@@ -1169,7 +1169,6 @@ static int rbd_req_read(struct request *rq, ...@@ -1169,7 +1169,6 @@ static int rbd_req_read(struct request *rq,
* Request sync osd read * Request sync osd read
*/ */
static int rbd_req_sync_read(struct rbd_device *rbd_dev, static int rbd_req_sync_read(struct rbd_device *rbd_dev,
struct ceph_snap_context *snapc,
u64 snapid, u64 snapid,
const char *object_name, const char *object_name,
u64 ofs, u64 len, u64 ofs, u64 len,
...@@ -1619,7 +1618,7 @@ static int rbd_read_header(struct rbd_device *rbd_dev, ...@@ -1619,7 +1618,7 @@ static int rbd_read_header(struct rbd_device *rbd_dev,
return -ENOMEM; return -ENOMEM;
rc = rbd_req_sync_read(rbd_dev, rc = rbd_req_sync_read(rbd_dev,
NULL, CEPH_NOSNAP, CEPH_NOSNAP,
rbd_dev->header_name, rbd_dev->header_name,
0, len, 0, len,
(char *)dh, &ver); (char *)dh, &ver);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册