• Josef Bacik's avatar
    Btrfs: if we've already started a trans handle, use that one · 2a1eb461
    Josef Bacik authored
    We currently track trans handles in current->journal_info, but we don't actually
    use it.  This patch fixes it.  This will cover the case where we have multiple
    people starting transactions down the call chain.  This keeps us from having to
    allocate a new handle and all of that, we just increase the use count of the
    current handle, save the old block_rsv, and return.  I tested this with xfstests
    and it worked out fine.  Thanks,
    Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
    2a1eb461
transaction.c 37.4 KB