• J
    Btrfs: if we've already started a trans handle, use that one · 2a1eb461
    Josef Bacik 提交于
    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: NJosef Bacik <josef@redhat.com>
    2a1eb461
transaction.h 4.5 KB