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 /net/ceph/osd_client.c | |
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 'net/ceph/osd_client.c')
-rw-r--r-- | net/ceph/osd_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 29e4fe09e31a..c3d8c6904df3 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c | |||
@@ -1742,7 +1742,7 @@ int ceph_osdc_start_request(struct ceph_osd_client *osdc, | |||
1742 | int rc = 0; | 1742 | int rc = 0; |
1743 | 1743 | ||
1744 | req->r_request->pages = req->r_pages; | 1744 | req->r_request->pages = req->r_pages; |
1745 | req->r_request->nr_pages = req->r_num_pages; | 1745 | req->r_request->page_count = req->r_num_pages; |
1746 | #ifdef CONFIG_BLOCK | 1746 | #ifdef CONFIG_BLOCK |
1747 | req->r_request->bio = req->r_bio; | 1747 | req->r_request->bio = req->r_bio; |
1748 | #endif | 1748 | #endif |
@@ -2093,7 +2093,7 @@ static struct ceph_msg *get_reply(struct ceph_connection *con, | |||
2093 | goto out; | 2093 | goto out; |
2094 | } | 2094 | } |
2095 | m->pages = req->r_pages; | 2095 | m->pages = req->r_pages; |
2096 | m->nr_pages = req->r_num_pages; | 2096 | m->page_count = req->r_num_pages; |
2097 | m->page_alignment = req->r_page_alignment; | 2097 | m->page_alignment = req->r_page_alignment; |
2098 | #ifdef CONFIG_BLOCK | 2098 | #ifdef CONFIG_BLOCK |
2099 | m->bio = req->r_bio; | 2099 | m->bio = req->r_bio; |