libceph: record byte count not page count

Record the byte count for an osd request rather than the page count.
The number of pages can always be derived from the byte count (and
alignment/offset) but the reverse is not true.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
This commit is contained in:
Alex Elder
2013-03-07 15:38:25 -06:00
committed by Sage Weil
parent 9516e45b25
commit e0c594878e
5 changed files with 52 additions and 37 deletions

View File

@@ -63,7 +63,7 @@ struct ceph_osd_data {
union {
struct {
struct page **pages;
u32 num_pages;
u64 length;
u32 alignment;
bool pages_from_pool;
bool own_pages;