btrfs: reada, cleanup remove unneeded variable in __readahead_hook
authorDavid Sterba <dsterba@suse.com>
Tue, 8 Nov 2016 12:32:43 +0000 (13:32 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 Nov 2016 12:45:15 +0000 (13:45 +0100)
commit04998b3324fc8aa8f0af9b820e865f8c9665120c
tree9bcd85e8eb873bcbb27288e5e3601d9351162772
parentef2fff64fd541af1e23eeae48d6ffdfcd92ae2a3
btrfs: reada, cleanup remove unneeded variable in __readahead_hook

We can't touch the eb directly in case the function is called with a
non-zero error, so we can read the eb level when needed.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/reada.c