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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user