aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
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 /include/linux/ceph
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 'include/linux/ceph')
-rw-r--r--include/linux/ceph/osd_client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h
index 61562c792855..4bfb4582439a 100644
--- a/include/linux/ceph/osd_client.h
+++ b/include/linux/ceph/osd_client.h
@@ -224,7 +224,7 @@ extern struct ceph_osd_request *ceph_osdc_alloc_request(struct ceph_osd_client *
224 struct bio *bio); 224 struct bio *bio);
225 225
226extern void ceph_osdc_build_request(struct ceph_osd_request *req, 226extern void ceph_osdc_build_request(struct ceph_osd_request *req,
227 u64 off, u64 *plen, 227 u64 off, u64 len,
228 struct ceph_osd_req_op *src_ops, 228 struct ceph_osd_req_op *src_ops,
229 struct ceph_snap_context *snapc, 229 struct ceph_snap_context *snapc,
230 struct timespec *mtime); 230 struct timespec *mtime);