• Mark Fasheh's avatar
    ocfs2: reverse inline-data truncate args · b1967d0e
    Mark Fasheh authored
    ocfs2_truncate() and ocfs2_remove_inode_range() had reversed their "set
    i_size" arguments to ocfs2_truncate_inline(). Fix things so that truncate
    sets i_size, and punching a hole ignores it.
    
    This exposed a problem where punching a hole in an inline-data file wasn't
    updating the page cache, so fix that too.
    Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
    b1967d0e
file.c 52.5 KB