You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
@@ -1721,7 +1721,7 @@ static struct ceph_msg *create_request_message(struct ceph_mds_client *mdsc,
|
||||
msg->front.iov_len = p - msg->front.iov_base;
|
||||
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
|
||||
|
||||
ceph_msg_data_set_pages(msg, req->r_pages, req->r_num_pages, 0);
|
||||
ceph_msg_data_set_pages(msg, req->r_pages, req->r_data_len, 0);
|
||||
|
||||
msg->hdr.data_len = cpu_to_le32(req->r_data_len);
|
||||
msg->hdr.data_off = cpu_to_le16(0);
|
||||
|
||||
Reference in New Issue
Block a user