osd_req_op_extent_osd_data_pagelist() was added in 2013 as part of commit a4ce40a9a7c1 ("libceph: combine initializing and setting osd data") but never used. The last use of osd_req_op_cls_request_data_pagelist() was removed in 2017's commit ecd4a68a26a2 ("rbd: switch rbd_obj_method_sync() to ceph_osdc_call()") Remove them.
Unified · Split
| @@ -490,9 +490,6 @@ extern void osd_req_op_extent_osd_data_pages(struct ceph_osd_request *, · 489 unmodified lines | |||
| 490 | struct page **pages, u64 length, | 490 | struct page **pages, u64 length, |
| 491 | u32 alignment, bool pages_from_pool, | 491 | u32 alignment, bool pages_from_pool, |
| 492 | bool own_pages); | 492 | bool own_pages); |
| 493 | extern void osd_req_op_extent_osd_data_pagelist(struct ceph_osd_request *, | ||
| 494 | unsigned int which, | ||
| 495 | struct ceph_pagelist *pagelist); | ||
| 496 | #ifdef CONFIG_BLOCK | 493 | #ifdef CONFIG_BLOCK |
| 497 | void osd_req_op_extent_osd_data_bio(struct ceph_osd_request *osd_req, | 494 | void osd_req_op_extent_osd_data_bio(struct ceph_osd_request *osd_req, |
| 498 | unsigned int which, | 495 | unsigned int which, |
| @@ -509,9 +506,6 @@ void osd_req_op_extent_osd_data_bvec_pos(struct ceph_osd_request *osd_req, · 10 unmodified lines | |||
| 509 | void osd_req_op_extent_osd_iter(struct ceph_osd_request *osd_req, | 506 | void osd_req_op_extent_osd_iter(struct ceph_osd_request *osd_req, |
| 510 | unsigned int which, struct iov_iter *iter); | 507 | unsigned int which, struct iov_iter *iter); |
| 511 | 508 | ||
| 512 | extern void osd_req_op_cls_request_data_pagelist(struct ceph_osd_request *, | ||
| 513 | unsigned int which, | ||
| 514 | struct ceph_pagelist *pagelist); | ||
| 515 | extern void osd_req_op_cls_request_data_pages(struct ceph_osd_request *, | 509 | extern void osd_req_op_cls_request_data_pages(struct ceph_osd_request *, |
| 516 | unsigned int which, | 510 | unsigned int which, |
| 517 | struct page **pages, u64 length, | 511 | struct page **pages, u64 length, |
| @@ -220,16 +220,6 @@ void osd_req_op_extent_osd_data_pages(struct ceph_osd_request *osd_req, · 219 unmodified lines | |||
| 220 | } | 220 | } |
| 221 | EXPORT_SYMBOL(osd_req_op_extent_osd_data_pages); | 221 | EXPORT_SYMBOL(osd_req_op_extent_osd_data_pages); |
| 222 | 222 | ||
| 223 | void osd_req_op_extent_osd_data_pagelist(struct ceph_osd_request *osd_req, | ||
| 224 | unsigned int which, struct ceph_pagelist *pagelist) | ||
| 225 | { | ||
| 226 | struct ceph_osd_data *osd_data; | ||
| 227 | |||
| 228 | osd_data = osd_req_op_data(osd_req, which, extent, osd_data); | ||
| 229 | ceph_osd_data_pagelist_init(osd_data, pagelist); | ||
| 230 | } | ||
| 231 | EXPORT_SYMBOL(osd_req_op_extent_osd_data_pagelist); | ||
| 232 | |||
| 233 | #ifdef CONFIG_BLOCK | 223 | #ifdef CONFIG_BLOCK |
| 234 | void osd_req_op_extent_osd_data_bio(struct ceph_osd_request *osd_req, | 224 | void osd_req_op_extent_osd_data_bio(struct ceph_osd_request *osd_req, |
| 235 | unsigned int which, | 225 | unsigned int which, |
| @@ -297,19 +287,6 @@ static void osd_req_op_cls_request_info_pagelist( · 61 unmodified lines | |||
| 297 | ceph_osd_data_pagelist_init(osd_data, pagelist); | 287 | ceph_osd_data_pagelist_init(osd_data, pagelist); |
| 298 | } | 288 | } |
| 299 | 289 | ||
| 300 | void osd_req_op_cls_request_data_pagelist( | ||
| 301 | struct ceph_osd_request *osd_req, | ||
| 302 | unsigned int which, struct ceph_pagelist *pagelist) | ||
| 303 | { | ||
| 304 | struct ceph_osd_data *osd_data; | ||
| 305 | |||
| 306 | osd_data = osd_req_op_data(osd_req, which, cls, request_data); | ||
| 307 | ceph_osd_data_pagelist_init(osd_data, pagelist); | ||
| 308 | osd_req->r_ops[which].cls.indata_len += pagelist->length; | ||
| 309 | osd_req->r_ops[which].indata_len += pagelist->length; | ||
| 310 | } | ||
| 311 | EXPORT_SYMBOL(osd_req_op_cls_request_data_pagelist); | ||
| 312 | |||
| 313 | void osd_req_op_cls_request_data_pages(struct ceph_osd_request *osd_req, | 290 | void osd_req_op_cls_request_data_pages(struct ceph_osd_request *osd_req, |
| 314 | unsigned int which, struct page **pages, u64 length, | 291 | unsigned int which, struct page **pages, u64 length, |
| 315 | u32 alignment, bool pages_from_pool, bool own_pages) | 292 | u32 alignment, bool pages_from_pool, bool own_pages) |