• Josef Bacik's avatar
    Btrfs: reserve some space for an orphan item when unlinking · 3880a1b4
    Josef Bacik authored
    In __unlink_start_trans() if we don't have enough room for a reservation we will
    check to see if the unlink will free up space.  If it does that's great, but we
    will still could add an orphan item, so we need to reserve enough space to add
    the orphan item.  Do this and migrate the space the global reserve so it all
    works out right.  Thanks,
    Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
    3880a1b4
inode.c 198 KB