ocfs2: Initialize the cluster we're writing to in a non-sparse extend
authorSunil Mushran <sunil.mushran@oracle.com>
Thu, 6 Aug 2009 23:12:58 +0000 (16:12 -0700)
committerJoel Becker <joel.becker@oracle.com>
Fri, 7 Aug 2009 20:16:23 +0000 (13:16 -0700)
commite7432675f8ca868a4af365759a8d4c3779a3d922
tree238d57e12fae632c9baeca98ddec701b3391ff29
parentab57a40827d99e2d8e59066a56b93bf6c844c916
ocfs2: Initialize the cluster we're writing to in a non-sparse extend

In a non-sparse extend, we correctly allocate (and zero) the clusters between
the old_i_size and pos, but we don't zero the portions of the cluster we're
writing to outside of pos<->len.

It handles clustersize > pagesize and blocksize < pagesize.

[Cleaned up by Joel Becker.]

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/aops.c