Skip to content
Commit 2a1eb461 authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: if we've already started a trans handle, use that one



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>
parent 7a7eaa40
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment