ceph: fix sync and dio writes across stripe boundaries
authorSage Weil <sage@newdream.net>
Mon, 13 Jun 2011 23:22:18 +0000 (16:22 -0700)
committerSage Weil <sage@newdream.net>
Mon, 13 Jun 2011 23:26:22 +0000 (16:26 -0700)
commitd7f124f129a6aea99938e0d4172c741b56fefeda
tree25ee1b2b91de6e490ddd05b00d6a3f844a224987
parent9bb0ce2b0b734f3325ea5cd6b351856eeac94f78
ceph: fix sync and dio writes across stripe boundaries

We were iterating across stripe boundaries properly, but not moving the
write buffer pointer forward.  This caused us to rewrite the same data
after the break.  Fix by adjusting the data pointer forward, and
recalculating the io and buffer alignment after the break.

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