• Mark Fasheh's avatar
    ocfs2: Fix invalid assertion during write on 64k pages · eeb47d12
    Mark Fasheh authored
    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: default avatarMark Fasheh <mark.fasheh@oracle.com>
    eeb47d12
aops.c 33.8 KB