diff options
| author | Ilya Dryomov <idryomov@gmail.com> | 2016-04-28 10:07:24 -0400 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-25 18:36:27 -0400 |
| commit | 85e084feb47349d62989efe1713a8723af95f4ea (patch) | |
| tree | 61bc405871e4334f74913ea947d4ac35f2324336 /include/linux | |
| parent | bb873b539154ab51893430b4ad6ba4051775276a (diff) | |
libceph: drop msg argument from ceph_osdc_callback_t
finish_read(), its only user, uses it to get to hdr.data_len, which is
what ->r_result is set to on success. This gains us the ability to
safely call callbacks from contexts other than reply, e.g. map check.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ceph/osd_client.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 67a37d98e0ca..3bebd60e7f9f 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
| @@ -20,8 +20,7 @@ struct ceph_osd_client; | |||
| 20 | /* | 20 | /* |
| 21 | * completion callback for async writepages | 21 | * completion callback for async writepages |
| 22 | */ | 22 | */ |
| 23 | typedef void (*ceph_osdc_callback_t)(struct ceph_osd_request *, | 23 | typedef void (*ceph_osdc_callback_t)(struct ceph_osd_request *); |
| 24 | struct ceph_msg *); | ||
| 25 | typedef void (*ceph_osdc_unsafe_callback_t)(struct ceph_osd_request *, bool); | 24 | typedef void (*ceph_osdc_unsafe_callback_t)(struct ceph_osd_request *, bool); |
| 26 | 25 | ||
| 27 | #define CEPH_HOMELESS_OSD -1 | 26 | #define CEPH_HOMELESS_OSD -1 |
