btrfs-progs: kill BUG_ON in readahead_tree_block()
authorZach Brown <zab@zabbo.net>
Wed, 27 Aug 2014 18:16:03 +0000 (11:16 -0700)
committerDavid Sterba <dsterba@suse.cz>
Sun, 14 Sep 2014 11:19:44 +0000 (13:19 +0200)
commit977f2baf363b59d4263d870b292975e2b791cd07
tree1af5eeb97359b8a0bd6a8d8238ae5e038fba3c19
parentcf8599c33803932b73e00a54785103030a37a4ee
btrfs-progs: kill BUG_ON in readahead_tree_block()

David sent a quick patch that removed a BUG_ON().  I took a peek and
found that the function was already leaking an eb ref and only returned
0.  So this fixes the leak and makes the function void and fixes up the
callers.

Accidentally-motivated-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Zach Brown <zab@zabbo.net>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-check.c
disk-io.c
disk-io.h