Lines Matching defs:commit

58  * | the race and the rest will wait for the winner to commit the transaction.
67 * | The btrfs_commit_transaction() caller will do the commit work.
69 * | Other btrfs_commit_transaction() caller will do the commit work.
77 * | Caller is chosen to commit transaction N, and all other trans handle
154 * because the transaction was aborted and a commit did not
298 * current transaction, and commit it. If there is no transaction, just
305 * JOIN_NOLOCK only happens during the transaction commit, so
345 * commit the transaction.
472 /* Make sure we don't try to update the root at commit time */
512 /* wait for commit against the current transaction to become unblocked
687 * have raced in and did an fsync() on a file which can kick a commit
691 * transaction and commit it, so we needn't do sb_start_intwrite().
839 * happen if the transaction commit already started but it's not yet in the
851 * It is used when we want to commit the current the transaction, but
892 /* Wait for a transaction commit to reach at least the given state. */
893 static noinline void wait_for_commit(struct btrfs_transaction *commit,
896 struct btrfs_fs_info *fs_info = commit->fs_info;
897 u64 transid = commit->transid;
910 wait_event(commit->commit_wait, commit->state >= min_state);
912 btrfs_put_transaction(commit);
925 commit = list_first_entry_or_null(&fs_info->trans_list,
928 if (!commit || commit->transid > transid) {
932 refcount_inc(&commit->use_count);
1141 * wait for it to finish - we don't want to commit a
1168 * those extents are on disk for transaction or log commit. We wait
1185 * left in the io tree. For a log commit, we don't remove them
1187 * concurrently - we do it only at transaction commit time when
1247 * log commit.
1484 * from a root nor trying to commit a log tree.
1527 * Will do all needed qgroup inherit and dirty hack like switch commit
1588 * Now we do a simplified commit transaction, which will:
1589 * 1) commit all subvolume and extent tree
1595 * In this simplified commit, we don't really care about other trees
1622 * transaction commit. This does the actual creation.
1982 * Wait for the current transaction commit to start and block
2058 * scrub. If the transaction commit is being done by the relocation
2060 * for the commit, and we end up here due to an error in the commit
2118 * respective handle. This must be called after the transaction commit started
2160 /* Stop the commit early if ->aborted is set */
2170 * We only want one transaction commit doing the flushing so we do not
2194 * will wait for the transaction to commit if it
2284 * Get the time spent on the work done by the commit thread and not
2285 * the time spent waiting on a previous commit
2330 * commit the transaction. We could have started a join before setting
2359 * We've started the commit, clear the flag in case we were triggered to
2360 * do an async commit but somebody else started before the transaction
2373 * extents around in the middle of the commit
2482 * make sure that before we commit our superblock, no other task can
2483 * start a new transaction and commit a log tree before we commit our
2484 * superblock. Anyone trying to commit a log tree locks this mutex before
2579 btrfs_warn(fs_info, "Skipping commit of aborted transaction.");