aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-11-14 10:38:19 -0500
committerAlex Elder <elder@inktank.com>2013-01-17 16:52:04 -0500
commit0120be3c60d46d6d55f4bf7a3d654cc705eb0c54 (patch)
tree5cb52ab14873ee0e33a6a2bc6115373b305114bb /drivers
parent5b9d1b1cd46aa6c8abf891f25c15aee31538da7e (diff)
libceph: pass length to ceph_osdc_build_request()
The len argument to ceph_osdc_build_request() is set up to be passed by address, but that function never updates its value so there's no need to do this. Tighten up the interface by passing the length directly. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/rbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 54bd9fc3ef7c..c1b135b6cb97 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -1172,7 +1172,7 @@ static int rbd_do_request(struct request *rq,
1172 snapid, ofs, &len, &bno, osd_req, ops); 1172 snapid, ofs, &len, &bno, osd_req, ops);
1173 rbd_assert(ret == 0); 1173 rbd_assert(ret == 0);
1174 1174
1175 ceph_osdc_build_request(osd_req, ofs, &len, ops, snapc, &mtime); 1175 ceph_osdc_build_request(osd_req, ofs, len, ops, snapc, &mtime);
1176 1176
1177 if (linger_req) { 1177 if (linger_req) {
1178 ceph_osdc_set_request_linger(osdc, osd_req); 1178 ceph_osdc_set_request_linger(osdc, osd_req);