Lines Matching refs:cur_trans

4487 void btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans,  in btrfs_cleanup_dirty_bgs()  argument
4492 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4493 while (!list_empty(&cur_trans->dirty_bgs)) { in btrfs_cleanup_dirty_bgs()
4494 cache = list_first_entry(&cur_trans->dirty_bgs, in btrfs_cleanup_dirty_bgs()
4499 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4502 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4510 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4512 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4514 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4520 while (!list_empty(&cur_trans->io_bgs)) { in btrfs_cleanup_dirty_bgs()
4521 cache = list_first_entry(&cur_trans->io_bgs, in btrfs_cleanup_dirty_bgs()
4533 void btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans, in btrfs_cleanup_one_transaction() argument
4536 btrfs_cleanup_dirty_bgs(cur_trans, fs_info); in btrfs_cleanup_one_transaction()
4537 ASSERT(list_empty(&cur_trans->dirty_bgs)); in btrfs_cleanup_one_transaction()
4538 ASSERT(list_empty(&cur_trans->io_bgs)); in btrfs_cleanup_one_transaction()
4540 btrfs_destroy_delayed_refs(cur_trans, fs_info); in btrfs_cleanup_one_transaction()
4542 cur_trans->state = TRANS_STATE_COMMIT_START; in btrfs_cleanup_one_transaction()
4545 cur_trans->state = TRANS_STATE_UNBLOCKED; in btrfs_cleanup_one_transaction()
4550 btrfs_destroy_marked_extents(fs_info, &cur_trans->dirty_pages, in btrfs_cleanup_one_transaction()
4555 cur_trans->state =TRANS_STATE_COMPLETED; in btrfs_cleanup_one_transaction()
4556 wake_up(&cur_trans->commit_wait); in btrfs_cleanup_one_transaction()