diff options
author | Alex Elder <elder@inktank.com> | 2013-02-25 18:35:46 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:14:28 -0400 |
commit | d4b515fa10dd52a2aef88df7299e9f3a8ab0957a (patch) | |
tree | 0110566b4e00aeb5215b1b967ff64695cd45eb10 /fs/ceph | |
parent | 60cf5992d96dd5b97baf74cd400d6e05f7f2c93e (diff) |
libceph: distinguish page array and pagelist count
Use distinct fields for tracking the number of pages in a message's
page array and in a message's page list. Currently only one or the
other is used at a time, but that will be changing soon.
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 442880d099c9..5c17705f88b1 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c | |||
@@ -1719,7 +1719,7 @@ static struct ceph_msg *create_request_message(struct ceph_mds_client *mdsc, | |||
1719 | msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); | 1719 | msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); |
1720 | 1720 | ||
1721 | msg->pages = req->r_pages; | 1721 | msg->pages = req->r_pages; |
1722 | msg->nr_pages = req->r_num_pages; | 1722 | msg->page_count = req->r_num_pages; |
1723 | msg->hdr.data_len = cpu_to_le32(req->r_data_len); | 1723 | msg->hdr.data_len = cpu_to_le32(req->r_data_len); |
1724 | msg->hdr.data_off = cpu_to_le16(0); | 1724 | msg->hdr.data_off = cpu_to_le16(0); |
1725 | 1725 | ||
@@ -2600,10 +2600,10 @@ static void send_mds_reconnect(struct ceph_mds_client *mdsc, | |||
2600 | } | 2600 | } |
2601 | 2601 | ||
2602 | reply->pagelist = pagelist; | 2602 | reply->pagelist = pagelist; |
2603 | reply->pagelist_count = calc_pages_for(0, pagelist->length); | ||
2603 | if (recon_state.flock) | 2604 | if (recon_state.flock) |
2604 | reply->hdr.version = cpu_to_le16(2); | 2605 | reply->hdr.version = cpu_to_le16(2); |
2605 | reply->hdr.data_len = cpu_to_le32(pagelist->length); | 2606 | reply->hdr.data_len = cpu_to_le32(pagelist->length); |
2606 | reply->nr_pages = calc_pages_for(0, pagelist->length); | ||
2607 | ceph_con_send(&session->s_con, reply); | 2607 | ceph_con_send(&session->s_con, reply); |
2608 | 2608 | ||
2609 | mutex_unlock(&session->s_mutex); | 2609 | mutex_unlock(&session->s_mutex); |