From: Josef Bacik Date: Tue, 25 Jan 2011 22:11:54 +0000 (+0000) Subject: Btrfs: handle no memory properly in prepare_pages X-Git-Tag: v2.6.38-rc4~2^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7adf5dfbb3af65a00e20b3ead224c3a1b40e4ec4;p=pandora-kernel.git Btrfs: handle no memory properly in prepare_pages Instead of doing a BUG_ON(1) in prepare_pages if grab_cache_page() fails, just loop through the pages we've already grabbed and unlock and release them, then return -ENOMEM like we should. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed