From: Chris Mason Date: Mon, 15 Dec 2008 16:44:56 +0000 (-0500) Subject: Btrfs: Fix compressed writes on truncated pages X-Git-Tag: v2.6.29-rc1~27^2~9^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42dc7babdcc99feadb04d461592ce5898a362550;p=pandora-kernel.git 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: Chris Mason --- Reading git-diff-tree failed