summaryrefslogtreecommitdiff
path: root/include/linux/ceph/messenger.h
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-03-07 15:38:26 -0600
committerSage Weil <sage@inktank.com>2013-05-01 21:16:42 -0700
commit4a73ef27ad04f1b8ea23eb55e50b20fcc0530a6f (patch)
tree5a0a127ca9b3b51a3f388c980f49229245fed361 /include/linux/ceph/messenger.h
parentebf18f47093e968105767eed4a0aa155e86b224e (diff)
libceph: record message data byte length
Record the number of bytes of data in a page array rather than the number of pages in the array. It can be assumed that the page array is of sufficient size to hold the number of bytes indicated (and offset by the indicated alignment). Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'include/linux/ceph/messenger.h')
-rw-r--r--include/linux/ceph/messenger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h
index 9d9be4682ac3..1991a6f9dc90 100644
--- a/include/linux/ceph/messenger.h
+++ b/include/linux/ceph/messenger.h
@@ -77,7 +77,7 @@ struct ceph_msg {
struct page **pages; /* data payload. NOT OWNER. */
unsigned int page_alignment; /* io offset in first page */
- unsigned int page_count; /* # pages in array or list */
+ size_t length; /* # data bytes in array or list */
struct ceph_pagelist *pagelist; /* instead of pages */
#ifdef CONFIG_BLOCK
unsigned int bio_seg; /* current bio segment */