]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ocfs2: Fix a wrong cluster calculation.
authortao.ma@oracle.com <tao.ma@oracle.com>
Thu, 6 Sep 2007 00:02:25 +0000 (08:02 +0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Tue, 11 Sep 2007 18:39:05 +0000 (11:39 -0700)
commitf19e22f5bc032125754186d2f5d35be308ccac78
tree7c5756dba9c62813cab4aa01b8d42305cb4d41f6
parent297e699ae0f716d61beaedd9c6c3d8eaa976bd73
[PATCH] ocfs2: Fix a wrong cluster calculation.

In ocfs2_alloc_write_write_ctxt, the written clusters length is calculated
by the byte length only. This may cause some problems if we start to write
at some position in the end of one cluster and last to a second cluster
while the "len" is smaller than a cluster size. In that case, we have to
write 2 clusters actually.
So we have to take the start position into consideration also.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/aops.c