ocfs2: Fix pos/len passed to ocfs2_write_cluster
authorMark Fasheh <mark.fasheh@oracle.com>
Mon, 17 Sep 2007 16:06:29 +0000 (09:06 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Thu, 20 Sep 2007 22:06:09 +0000 (15:06 -0700)
commitdb56246c6980e376b02d2da568d119da71f82fb9
treedc88e09c80d50dd77580d1d9366bac8c74c9bffa
parent415cb800375cc4e89fb5a6a454e484bd4adbffb4
ocfs2: Fix pos/len passed to ocfs2_write_cluster

This was broken for file systems whose cluster size is greater than page
size. Pos needs to be incremented as we loop through the descriptors, and
len needs to be capped to the size of a single cluster.

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