Searched refs:prev_trans (Results 1 – 2 of 2) sorted by relevance
2153 struct btrfs_transaction *prev_trans = NULL; in btrfs_commit_transaction() local2253 prev_trans = list_entry(cur_trans->list.prev, in btrfs_commit_transaction()2255 if (prev_trans->state < want_state) { in btrfs_commit_transaction()2256 refcount_inc(&prev_trans->use_count); in btrfs_commit_transaction()2259 wait_for_commit(prev_trans, want_state); in btrfs_commit_transaction()2261 ret = READ_ONCE(prev_trans->aborted); in btrfs_commit_transaction()2263 btrfs_put_transaction(prev_trans); in btrfs_commit_transaction()
1424 struct btrfs_transaction *prev_trans = NULL; in clean_pinned_extents() local1431 prev_trans = list_last_entry(&trans->transaction->list, in clean_pinned_extents()1433 refcount_inc(&prev_trans->use_count); in clean_pinned_extents()1448 if (prev_trans) { in clean_pinned_extents()1449 ret = clear_extent_bits(&prev_trans->pinned_extents, start, end, in clean_pinned_extents()1459 if (prev_trans) in clean_pinned_extents()1460 btrfs_put_transaction(prev_trans); in clean_pinned_extents()