]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Fix invalid assertion during write on 64k pages
authorMark Fasheh <mark.fasheh@oracle.com>
Wed, 6 Jun 2007 23:15:24 +0000 (16:15 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 6 Jun 2007 23:42:03 +0000 (16:42 -0700)
commitd35f7522c81f1518deee2573075c5352b5458eef
tree8362fcf841f204876446c952dca530cdb419899d
parenta2816ac153f3f0b02f00ed64694e9a54b0d0911a
ocfs2: Fix invalid assertion during write on 64k pages

The write path code intends to bug if a math error (or unhandled case)
results in a write outside of the current cluster boundaries. The actual
BUG_ON() statements however are incorrect, leading to a crash on kernels
with 64k page size. Fix those by checking against the right variables.

Also, move the assertions higher up within the functions so that they trip
*before* the code starts to mark buffers.

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