Lines Matching defs:commit
61 * | the race and the rest will wait for the winner to commit the transaction.
70 * | The btrfs_commit_transaction() caller will do the commit work.
72 * | Other btrfs_commit_transaction() caller will do the commit work.
80 * | Caller is chosen to commit transaction N, and all other trans handle
154 * because the transaction was aborted and a commit did not
307 * current transaction, and commit it. If there is no transaction, just
314 * JOIN_NOLOCK only happens during the transaction commit, so
354 * commit the transaction.
481 /* Make sure we don't try to update the root at commit time */
521 /* wait for commit against the current transaction to become unblocked
707 * have raced in and did an fsync() on a file which can kick a commit
711 * transaction and commit it, so we needn't do sb_start_intwrite().
859 * happen if the transaction commit already started but it's not yet in the
871 * It is used when we want to commit the current the transaction, but
912 /* Wait for a transaction commit to reach at least the given state. */
913 static noinline void wait_for_commit(struct btrfs_transaction *commit,
916 struct btrfs_fs_info *fs_info = commit->fs_info;
917 u64 transid = commit->transid;
930 wait_event(commit->commit_wait, commit->state >= min_state);
932 btrfs_put_transaction(commit);
945 commit = list_first_entry_or_null(&fs_info->trans_list,
948 if (!commit || commit->transid > transid) {
952 refcount_inc(&commit->use_count);
1174 * wait for it to finish - we don't want to commit a
1201 * those extents are on disk for transaction or log commit. We wait
1217 * left in the io tree. For a log commit, we don't remove them
1219 * concurrently - we do it only at transaction commit time when
1280 * log commit.
1517 * from a root nor trying to commit a log tree.
1566 * Will do all needed qgroup inherit and dirty hack like switch commit
1627 * Now we do a simplified commit transaction, which will:
1628 * 1) commit all subvolume and extent tree
1634 * In this simplified commit, we don't really care about other trees
1660 * transaction commit. This does the actual creation.
2032 * Wait for the current transaction commit to start and block
2043 * If there is a running transaction commit it or if it's already committing,
2044 * wait for its commit to complete. Does not start and commit a new transaction
2127 * scrub. If the transaction commit is being done by the relocation
2129 * for the commit, and we end up here due to an error in the commit
2195 * respective handle. This must be called after the transaction commit started
2243 /* Stop the commit early if ->aborted is set */
2253 * We only want one transaction commit doing the flushing so we do not
2277 * will wait for the transaction to commit if it
2368 * Get the time spent on the work done by the commit thread and not
2369 * the time spent waiting on a previous commit
2413 * commit the transaction. We could have started a join before setting
2443 * We've started the commit, clear the flag in case we were triggered to
2444 * do an async commit but somebody else started before the transaction
2457 * extents around in the middle of the commit
2559 * make sure that before we commit our superblock, no other task can
2560 * start a new transaction and commit a log tree before we commit our
2561 * superblock. Anyone trying to commit a log tree locks this mutex before
2663 btrfs_warn(fs_info, "Skipping commit of aborted transaction.");