• Josef Bacik's avatar
    Btrfs: always use trans->block_rsv for orphans · 40acc3ee
    Josef Bacik authored
    This is the case all the time anyway except for relocation which could be doing
    a reloc root for a non ref counted root, in which case we'd end up with some
    random block rsv rather than the one we have our reservation in.  If there isn't
    enough space in the block rsv we are trying to steal from we'll BUG() because we
    expect there to be space for the orphan to make its reservation.  Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    40acc3ee
extent-tree.c 303 KB