]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite458291ff51a681b35ab45e03142fa82d97e4c03
tree25ee1b2b91de6e490ddd05b00d6a3f844a224987
parent2b933979869be4a7a0f52bdd865dc4ddd2a21ddd
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