libceph: fix page calculation for non-page-aligned io
authorSage Weil <sage@newdream.net>
Mon, 13 Jun 2011 23:20:18 +0000 (16:20 -0700)
committerSage Weil <sage@newdream.net>
Mon, 13 Jun 2011 23:26:17 +0000 (16:26 -0700)
commit9bb0ce2b0b734f3325ea5cd6b351856eeac94f78
treeafd4c5d343ddfabae8c3b78bff342f6ba6037055
parent773e9b442693b250aa6c452cb0cf5a9343f51cef
libceph: fix page calculation for non-page-aligned io

Set the page count correctly for non-page-aligned IO.  We were already
doing this correctly for alignment, but not the page count.  Fixes
DIRECT_IO writes from unaligned pages.

Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/osd_client.c