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 /include/linux/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 'include/linux/ceph')
| -rw-r--r-- | include/linux/ceph/messenger.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index 8297288a66e0..1b08349a413c 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h | |||
| @@ -75,9 +75,10 @@ struct ceph_msg { | |||
| 75 | struct kvec front; /* unaligned blobs of message */ | 75 | struct kvec front; /* unaligned blobs of message */ |
| 76 | struct ceph_buffer *middle; | 76 | struct ceph_buffer *middle; |
| 77 | struct page **pages; /* data payload. NOT OWNER. */ | 77 | struct page **pages; /* data payload. NOT OWNER. */ |
| 78 | unsigned nr_pages; /* size of page array */ | 78 | unsigned page_count; /* size of page array */ |
| 79 | unsigned page_alignment; /* io offset in first page */ | 79 | unsigned page_alignment; /* io offset in first page */ |
| 80 | struct ceph_pagelist *pagelist; /* instead of pages */ | 80 | struct ceph_pagelist *pagelist; /* instead of pages */ |
| 81 | unsigned int pagelist_count; /* number of pages in pagelist */ | ||
| 81 | 82 | ||
| 82 | struct ceph_connection *con; | 83 | struct ceph_connection *con; |
| 83 | struct list_head list_head; | 84 | struct list_head list_head; |
