From: Josef Bacik Date: Sat, 20 Apr 2013 14:18:27 +0000 (-0400) Subject: Btrfs: don't call readahead hook until we have read the entire eb X-Git-Tag: v3.10-rc1~31^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79fb65a1f6d97febc232e1e4e56019b0c9208541;p=pandora-kernel.git Btrfs: don't call readahead hook until we have read the entire eb Martin Steigerwald reported a BUG_ON() where we were given a bogus bytenr to map. Turns out he is using > PAGESIZE leafsizes. The readahead stuff is called every time we do a completion, but we may not have finished reading in all the pages, so the bytenr we read off the node could be completely bogus. Fix this by only calling the readahead hook once all pages have been read in. Thanks, Reported-by: Martin Steigerwald Signed-off-by: Josef Bacik --- Reading git-diff-tree failed