ceph: fix direct-io on non-page-aligned buffers
authorHenry C Chang <henry_c_chang@tcloudcomputing.com>
Thu, 16 Dec 2010 04:41:54 +0000 (20:41 -0800)
committerSage Weil <sage@newdream.net>
Thu, 16 Dec 2010 04:46:16 +0000 (20:46 -0800)
commitab226e21ad34f6ef52e00d2ab399d2364b4cdfee
tree95b9683b601a0602d9f813f7e6786e9a0e6da118
parentd96c9043d1588f04c7f467167f653c07d83232d5
ceph: fix direct-io on non-page-aligned buffers

The user buffer may be 512-byte aligned, not page-aligned.  We were
assuming the buffer was page-aligned and only accounting for
non-page-aligned io offsets.

Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/file.c