• J
    Btrfs: fix all callers of read_tree_block · 416bc658
    Josef Bacik 提交于
    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: NJosef Bacik <jbacik@fusionio.com>
    416bc658
disk-io.c 107.2 KB