aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-03-07 16:38:26 -0500
committerSage Weil <sage@inktank.com>2013-05-02 00:16:39 -0400
commitf1baeb2b9fc1c2c87ec02f1bf8cb88e108d4fbce (patch)
tree5ca6b72adeeea2423367ea3313902cf61fd45980 /fs/ceph/mds_client.c
parent02afca6ca00b7972887c5cc77068356f33bdfc18 (diff)
libceph: set page info with byte length
When setting page array information for message data, provide the byte length rather than the page count ceph_msg_data_set_pages(). Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r--fs/ceph/mds_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 90198a407023..03eb943ebce5 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -1721,7 +1721,7 @@ static struct ceph_msg *create_request_message(struct ceph_mds_client *mdsc,
1721 msg->front.iov_len = p - msg->front.iov_base; 1721 msg->front.iov_len = p - msg->front.iov_base;
1722 msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); 1722 msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
1723 1723
1724 ceph_msg_data_set_pages(msg, req->r_pages, req->r_num_pages, 0); 1724 ceph_msg_data_set_pages(msg, req->r_pages, req->r_data_len, 0);
1725 1725
1726 msg->hdr.data_len = cpu_to_le32(req->r_data_len); 1726 msg->hdr.data_len = cpu_to_le32(req->r_data_len);
1727 msg->hdr.data_off = cpu_to_le16(0); 1727 msg->hdr.data_off = cpu_to_le16(0);