ceph: fix buffer pointer advance in ceph_sync_write
authorHenry C Chang <henry.cy.chang@gmail.com>
Tue, 19 Mar 2013 01:46:26 +0000 (09:46 +0800)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:17:08 +0000 (21:17 -0700)
commit022f3e2ee2354599faccf5a764a5a24a5dd194c9
tree02294b663ff124edee88f98ddcb32397c83ffe08
parent2f276c511137d97e56b19e29865e1e6569315ccb
ceph: fix buffer pointer advance in ceph_sync_write

We should advance the user data pointer by _len_ instead of _written_.
_len_ is the data length written in each iteration while _written_ is the
accumulated data length we have writtent out.

Signed-off-by: Henry C Chang <henry.cy.chang@gmail.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Tested-by: Sage Weil <sage@inktank.com>
fs/ceph/file.c