• Josef Bacik's avatar
    Btrfs: fix all callers of read_tree_block · 416bc658
    Josef Bacik authored
    We kept leaking extent buffers when mounting a broken file system and it turns
    out it's because not everybody uses read_tree_block properly.  You need to check
    and make sure the extent_buffer is uptodate before you use it.  This patch fixes
    everybody who calls read_tree_block directly to make sure they check that it is
    uptodate and free it and return an error if it is not.  With this we no longer
    leak EB's when things go horribly wrong.  Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    416bc658
extent-tree.c 229 KB