mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 13:32:40 -04:00
libceph: drop osdc from ceph_calc_raw_layout()
The osdc parameter to ceph_calc_raw_layout() is not used, so get rid of it. Consequently, the corresponding parameter in calc_layout() becomes unused, so get rid of that as well. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
This commit is contained in:
@@ -1168,7 +1168,7 @@ static int rbd_do_request(struct request *rq,
|
||||
osd_req->r_oid_len = strlen(osd_req->r_oid);
|
||||
|
||||
rbd_layout_init(&osd_req->r_file_layout, rbd_dev->spec->pool_id);
|
||||
ret = ceph_calc_raw_layout(osdc, &osd_req->r_file_layout,
|
||||
ret = ceph_calc_raw_layout(&osd_req->r_file_layout,
|
||||
ofs, &len, &bno, osd_req, ops);
|
||||
rbd_assert(ret == 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user