Searched refs:prev_trans (Results 1 – 2 of 2) sorted by relevance
2082 struct btrfs_transaction *prev_trans = NULL; in btrfs_commit_transaction() local2182 prev_trans = list_entry(cur_trans->list.prev, in btrfs_commit_transaction()2184 if (prev_trans->state != TRANS_STATE_COMPLETED) { in btrfs_commit_transaction()2185 refcount_inc(&prev_trans->use_count); in btrfs_commit_transaction()2188 wait_for_commit(prev_trans); in btrfs_commit_transaction()2189 ret = READ_ONCE(prev_trans->aborted); in btrfs_commit_transaction()2191 btrfs_put_transaction(prev_trans); in btrfs_commit_transaction()
1300 struct btrfs_transaction *prev_trans = NULL; in clean_pinned_extents() local1307 prev_trans = list_last_entry(&trans->transaction->list, in clean_pinned_extents()1309 refcount_inc(&prev_trans->use_count); in clean_pinned_extents()1324 if (prev_trans) { in clean_pinned_extents()1325 ret = clear_extent_bits(&prev_trans->pinned_extents, start, end, in clean_pinned_extents()1335 if (prev_trans) in clean_pinned_extents()1336 btrfs_put_transaction(prev_trans); in clean_pinned_extents()