From: Filipe Manana Date: Thu, 5 Jun 2014 12:22:26 +0000 (+0100) Subject: Btrfs: don't release invalid page in btrfs_page_exists_in_range() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~54^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fdef6d43cb897bcbbed13786e8cc8cccabc442a;p=pandora-kernel.git Btrfs: don't release invalid page in btrfs_page_exists_in_range() In inode.c:btrfs_page_exists_in_range(), if the page we got from the radix tree is an exception entry, which can't be retried, we exit the loop with a non-NULL page and then call page_cache_release against it, which is not ok since it's not a valid page. This could also make us return true when we shouldn't. Signed-off-by: Filipe David Borba Manana Signed-off-by: Chris Mason --- Reading git-diff-tree failed