diff options
author | Alex Elder <elder@inktank.com> | 2013-02-14 13:16:43 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:16:40 -0400 |
commit | 27fa83852ba275361eaa1a1283cf6704fa8191a6 (patch) | |
tree | b3a939253a63d3d3d64b339017008733e659108b /fs/ceph | |
parent | f1baeb2b9fc1c2c87ec02f1bf8cb88e108d4fbce (diff) |
libceph: isolate other message data fields
Define ceph_msg_data_set_pagelist(), ceph_msg_data_set_bio(), and
ceph_msg_data_set_trail() to clearly abstract the assignment of the
remaining data-related fields in a ceph message structure. Use the
new functions in the osd client and mds client.
This partially resolves:
http://tracker.ceph.com/issues/4263
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/mds_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 03eb943ebce5..3b2aa8702ae0 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c | |||
@@ -2603,7 +2603,7 @@ static void send_mds_reconnect(struct ceph_mds_client *mdsc, | |||
2603 | goto fail; | 2603 | goto fail; |
2604 | } | 2604 | } |
2605 | 2605 | ||
2606 | reply->pagelist = pagelist; | 2606 | ceph_msg_data_set_pagelist(reply, pagelist); |
2607 | if (recon_state.flock) | 2607 | if (recon_state.flock) |
2608 | reply->hdr.version = cpu_to_le16(2); | 2608 | reply->hdr.version = cpu_to_le16(2); |
2609 | reply->hdr.data_len = cpu_to_le32(pagelist->length); | 2609 | reply->hdr.data_len = cpu_to_le32(pagelist->length); |