From: Filipe Manana Date: Thu, 5 Jun 2014 12:22:24 +0000 (+0100) Subject: Btrfs: make sure we retry if we couldn't get the page X-Git-Tag: omap-for-v3.16/fixes-against-rc1~54^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91405151eb7005949072bee751343390757f8417;p=pandora-kernel.git Btrfs: make sure we retry if we couldn't get the page In inode.c:btrfs_page_exists_in_range(), if we can't get the page we need to retry. However we weren't retrying because we weren't setting page to NULL, which makes the while loop exit immediately and will make us call page_cache_release after exiting the loop which is incorrect because our page get didn't succeed. 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