Searched refs:prev_trans (Results 1 – 2 of 2) sorted by relevance
2143 struct btrfs_transaction *prev_trans = NULL; in btrfs_commit_transaction() local2241 prev_trans = list_entry(cur_trans->list.prev, in btrfs_commit_transaction()2243 if (prev_trans->state < want_state) { in btrfs_commit_transaction()2244 refcount_inc(&prev_trans->use_count); in btrfs_commit_transaction()2247 wait_for_commit(prev_trans, want_state); in btrfs_commit_transaction()2249 ret = READ_ONCE(prev_trans->aborted); in btrfs_commit_transaction()2251 btrfs_put_transaction(prev_trans); in btrfs_commit_transaction()
1274 struct btrfs_transaction *prev_trans = NULL; in clean_pinned_extents() local1281 prev_trans = list_last_entry(&trans->transaction->list, in clean_pinned_extents()1283 refcount_inc(&prev_trans->use_count); in clean_pinned_extents()1298 if (prev_trans) { in clean_pinned_extents()1299 ret = clear_extent_bits(&prev_trans->pinned_extents, start, end, in clean_pinned_extents()1309 if (prev_trans) in clean_pinned_extents()1310 btrfs_put_transaction(prev_trans); in clean_pinned_extents()