Searched refs:prev_trans (Results 1 – 2 of 2) sorted by relevance
2154 struct btrfs_transaction *prev_trans = NULL; in btrfs_commit_transaction() local2254 prev_trans = list_entry(cur_trans->list.prev, in btrfs_commit_transaction()2256 if (prev_trans->state < want_state) { in btrfs_commit_transaction()2257 refcount_inc(&prev_trans->use_count); in btrfs_commit_transaction()2260 wait_for_commit(prev_trans, want_state); in btrfs_commit_transaction()2262 ret = READ_ONCE(prev_trans->aborted); in btrfs_commit_transaction()2264 btrfs_put_transaction(prev_trans); in btrfs_commit_transaction()
1423 struct btrfs_transaction *prev_trans = NULL; in clean_pinned_extents() local1430 prev_trans = list_last_entry(&trans->transaction->list, in clean_pinned_extents()1432 refcount_inc(&prev_trans->use_count); in clean_pinned_extents()1447 if (prev_trans) { in clean_pinned_extents()1448 ret = clear_extent_bits(&prev_trans->pinned_extents, start, end, in clean_pinned_extents()1458 if (prev_trans) in clean_pinned_extents()1459 btrfs_put_transaction(prev_trans); in clean_pinned_extents()