Skip to content
Commit 79fb65a1 authored by Josef Bacik's avatar Josef Bacik
Browse files

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: default avatarMartin Steigerwald <Martin@lichtvoll.de>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 9bb91873
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment