Skip to content
Commit 42dc7bab authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: Fix compressed writes on truncated pages



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: default avatarChris Mason <chris.mason@oracle.com>
parent 17d217fe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment