Lines Matching defs:commit
60 * | the race and the rest will wait for the winner to commit the transaction.
69 * | The btrfs_commit_transaction() caller will do the commit work.
71 * | Other btrfs_commit_transaction() caller will do the commit work.
79 * | Caller is chosen to commit transaction N, and all other trans handle
156 * because the transaction was aborted and a commit did not
300 * current transaction, and commit it. If there is no transaction, just
307 * JOIN_NOLOCK only happens during the transaction commit, so
347 * commit the transaction.
474 /* Make sure we don't try to update the root at commit time */
514 /* wait for commit against the current transaction to become unblocked
667 * have raced in and did an fsync() on a file which can kick a commit
671 * transaction and commit it, so we needn't do sb_start_intwrite().
808 * happen if the transaction commit already started but it's not yet in the
820 * It is used when we want to commit the current the transaction, but
861 /* Wait for a transaction commit to reach at least the given state. */
862 static noinline void wait_for_commit(struct btrfs_transaction *commit,
865 struct btrfs_fs_info *fs_info = commit->fs_info;
866 u64 transid = commit->transid;
879 wait_event(commit->commit_wait, commit->state >= min_state);
881 btrfs_put_transaction(commit);
894 commit = list_first_entry_or_null(&fs_info->trans_list,
897 if (!commit || commit->transid > transid) {
901 refcount_inc(&commit->use_count);
1098 * wait for it to finish - we don't want to commit a
1125 * those extents are on disk for transaction or log commit. We wait
1143 * left in the io tree. For a log commit, we don't remove them
1145 * concurrently - we do it only at transaction commit time when
1207 * log commit.
1444 * from a root nor trying to commit a log tree.
1526 * 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.
1986 * Wait for the current transaction commit to start and block
2062 * scrub. If the transaction commit is being done by the relocation
2064 * for the commit, and we end up here due to an error in the commit
2122 * respective handle. This must be called after the transaction commit started
2164 /* Stop the commit early if ->aborted is set */
2174 * We only want one transaction commit doing the flushing so we do not
2198 * will wait for the transaction to commit if it
2288 * Get the time spent on the work done by the commit thread and not
2289 * the time spent waiting on a previous commit
2334 * commit the transaction. We could have started a join before setting
2363 * We've started the commit, clear the flag in case we were triggered to
2364 * do an async commit but somebody else started before the transaction
2377 * extents around in the middle of the commit
2486 * make sure that before we commit our superblock, no other task can
2487 * start a new transaction and commit a log tree before we commit our
2488 * superblock. Anyone trying to commit a log tree locks this mutex before
2583 btrfs_warn(fs_info, "Skipping commit of aborted transaction.");