diff options
| author | Ilya Dryomov <idryomov@gmail.com> | 2016-04-28 10:07:21 -0400 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-25 18:36:23 -0400 |
| commit | 0c0a8de13f9612a663b050afa955e6668858d1eb (patch) | |
| tree | 6849c721a09c3bb12af83decd4792af909dd5caa /include/linux/ceph | |
| parent | c41d13a31fefed303f734c0c5106f6dcd262168e (diff) | |
libceph: nuke unused fields and functions
Either unused or useless:
osdmap->mkfs_epoch
osd->o_marked_for_keepalive
monc->num_generic_requests
osdc->map_waiters
osdc->last_requested_map
osdc->timeout_tid
osd_req_op_cls_response_data()
osdmap_apply_incremental() @msgr arg
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph')
| -rw-r--r-- | include/linux/ceph/mon_client.h | 1 | ||||
| -rw-r--r-- | include/linux/ceph/osd_client.h | 8 | ||||
| -rw-r--r-- | include/linux/ceph/osdmap.h | 6 |
3 files changed, 2 insertions, 13 deletions
diff --git a/include/linux/ceph/mon_client.h b/include/linux/ceph/mon_client.h index e230e7ed60d3..330d045e4092 100644 --- a/include/linux/ceph/mon_client.h +++ b/include/linux/ceph/mon_client.h | |||
| @@ -77,7 +77,6 @@ struct ceph_mon_client { | |||
| 77 | 77 | ||
| 78 | /* pending generic requests */ | 78 | /* pending generic requests */ |
| 79 | struct rb_root generic_request_tree; | 79 | struct rb_root generic_request_tree; |
| 80 | int num_generic_requests; | ||
| 81 | u64 last_tid; | 80 | u64 last_tid; |
| 82 | 81 | ||
| 83 | /* subs, indexed with CEPH_SUB_* */ | 82 | /* subs, indexed with CEPH_SUB_* */ |
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 66a1fcd5bff7..63854a8df183 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
| @@ -37,11 +37,9 @@ struct ceph_osd { | |||
| 37 | struct list_head o_osd_lru; | 37 | struct list_head o_osd_lru; |
| 38 | struct ceph_auth_handshake o_auth; | 38 | struct ceph_auth_handshake o_auth; |
| 39 | unsigned long lru_ttl; | 39 | unsigned long lru_ttl; |
| 40 | int o_marked_for_keepalive; | ||
| 41 | struct list_head o_keepalive_item; | 40 | struct list_head o_keepalive_item; |
| 42 | }; | 41 | }; |
| 43 | 42 | ||
| 44 | |||
| 45 | #define CEPH_OSD_SLAB_OPS 2 | 43 | #define CEPH_OSD_SLAB_OPS 2 |
| 46 | #define CEPH_OSD_MAX_OPS 16 | 44 | #define CEPH_OSD_MAX_OPS 16 |
| 47 | 45 | ||
| @@ -206,13 +204,10 @@ struct ceph_osd_client { | |||
| 206 | 204 | ||
| 207 | struct ceph_osdmap *osdmap; /* current map */ | 205 | struct ceph_osdmap *osdmap; /* current map */ |
| 208 | struct rw_semaphore map_sem; | 206 | struct rw_semaphore map_sem; |
| 209 | struct completion map_waiters; | ||
| 210 | u64 last_requested_map; | ||
| 211 | 207 | ||
| 212 | struct mutex request_mutex; | 208 | struct mutex request_mutex; |
| 213 | struct rb_root osds; /* osds */ | 209 | struct rb_root osds; /* osds */ |
| 214 | struct list_head osd_lru; /* idle osds */ | 210 | struct list_head osd_lru; /* idle osds */ |
| 215 | u64 timeout_tid; /* tid of timeout triggering rq */ | ||
| 216 | u64 last_tid; /* tid of last request */ | 211 | u64 last_tid; /* tid of last request */ |
| 217 | struct rb_root requests; /* pending requests */ | 212 | struct rb_root requests; /* pending requests */ |
| 218 | struct list_head req_lru; /* in-flight lru */ | 213 | struct list_head req_lru; /* in-flight lru */ |
| @@ -271,9 +266,6 @@ extern void osd_req_op_extent_dup_last(struct ceph_osd_request *osd_req, | |||
| 271 | extern struct ceph_osd_data *osd_req_op_extent_osd_data( | 266 | extern struct ceph_osd_data *osd_req_op_extent_osd_data( |
| 272 | struct ceph_osd_request *osd_req, | 267 | struct ceph_osd_request *osd_req, |
| 273 | unsigned int which); | 268 | unsigned int which); |
| 274 | extern struct ceph_osd_data *osd_req_op_cls_response_data( | ||
| 275 | struct ceph_osd_request *osd_req, | ||
| 276 | unsigned int which); | ||
| 277 | 269 | ||
| 278 | extern void osd_req_op_extent_osd_data_pages(struct ceph_osd_request *, | 270 | extern void osd_req_op_extent_osd_data_pages(struct ceph_osd_request *, |
| 279 | unsigned int which, | 271 | unsigned int which, |
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h index 777a29412706..ce7a41a182d4 100644 --- a/include/linux/ceph/osdmap.h +++ b/include/linux/ceph/osdmap.h | |||
| @@ -123,7 +123,6 @@ struct ceph_pg_mapping { | |||
| 123 | struct ceph_osdmap { | 123 | struct ceph_osdmap { |
| 124 | struct ceph_fsid fsid; | 124 | struct ceph_fsid fsid; |
| 125 | u32 epoch; | 125 | u32 epoch; |
| 126 | u32 mkfs_epoch; | ||
| 127 | struct ceph_timespec created, modified; | 126 | struct ceph_timespec created, modified; |
| 128 | 127 | ||
| 129 | u32 flags; /* CEPH_OSDMAP_* */ | 128 | u32 flags; /* CEPH_OSDMAP_* */ |
| @@ -205,9 +204,8 @@ static inline int ceph_decode_pgid(void **p, void *end, struct ceph_pg *pgid) | |||
| 205 | } | 204 | } |
| 206 | 205 | ||
| 207 | extern struct ceph_osdmap *ceph_osdmap_decode(void **p, void *end); | 206 | extern struct ceph_osdmap *ceph_osdmap_decode(void **p, void *end); |
| 208 | extern struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end, | 207 | struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end, |
| 209 | struct ceph_osdmap *map, | 208 | struct ceph_osdmap *map); |
| 210 | struct ceph_messenger *msgr); | ||
| 211 | extern void ceph_osdmap_destroy(struct ceph_osdmap *map); | 209 | extern void ceph_osdmap_destroy(struct ceph_osdmap *map); |
| 212 | 210 | ||
| 213 | /* calculate mapping of a file extent to an object */ | 211 | /* calculate mapping of a file extent to an object */ |
