]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e8daa2fc19d1fceeb89dc163e2e8d3cac47f7ff
treedc88e09c80d50dd77580d1d9366bac8c74c9bffa
parent8cc414fbcafaea26b66a7d8acbe274524983e558
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