• C
    Btrfs: Fix compressed writes on truncated pages · 42dc7bab
    Chris Mason 提交于
    The compression code was using isize to limit the amount of data it
    sent through zlib.  But, it wasn't properly limiting the looping to
    just the pages inside i_size.  The end result was trying to compress
    too many pages, including those that had not been setup and properly locked
    down.  This made the compression code oops while trying find_get_page on a
    page that didn't exist.
    Signed-off-by: NChris Mason <chris.mason@oracle.com>
    42dc7bab
ctree.c 103.5 KB