summaryrefslogtreecommitdiff
path: root/fs/ceph/file.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-03-07 21:38:25 (GMT)
committerSage Weil <sage@inktank.com>2013-05-02 04:16:36 (GMT)
commite0c594878e3211b09208c779df5f996f0b831d9e (patch)
tree4418813382a61eafd7f3216b8efbc63a1d253f37 /fs/ceph/file.c
parent9516e45b25d9967c35d2e798496ec5e590aaa24f (diff)
downloadlinux-e0c594878e3211b09208c779df5f996f0b831d9e.tar.xz
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>
Diffstat (limited to 'fs/ceph/file.c')
-rw-r--r--fs/ceph/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 501fb37..0ac6e15 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -573,7 +573,7 @@ more:
}
req->r_data_out.type = CEPH_OSD_DATA_TYPE_PAGES;
req->r_data_out.pages = pages;
- req->r_data_out.num_pages = num_pages;
+ req->r_data_out.length = len;
req->r_data_out.alignment = page_align;
req->r_inode = inode;