summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-04-20 10:18:27 -0400
committerJosef Bacik <jbacik@fusionio.com>2013-05-06 15:55:03 -0400
commit79fb65a1f6d97febc232e1e4e56019b0c9208541 (patch)
tree7f2de2444ea17770e172d5fa91e60859eb4405f6 /fs/btrfs/volumes.c
parent9bb91873e32af6305a1c5239024674e4a5a97e92 (diff)
downloadlinux-79fb65a1f6d97febc232e1e4e56019b0c9208541.tar.bz2
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 <Martin@lichtvoll.de> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
0 files changed, 0 insertions, 0 deletions