Lines Matching full: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
153 * because the transaction was aborted and a commit did not in btrfs_put_transaction()
306 * current transaction, and commit it. If there is no transaction, just in join_transaction()
313 * JOIN_NOLOCK only happens during the transaction commit, so in join_transaction()
353 * commit the transaction. in join_transaction()
479 /* Make sure we don't try to update the root at commit time */ in btrfs_add_dropped_root()
519 /* wait for commit against the current transaction to become unblocked
695 * have raced in and did an fsync() on a file which can kick a commit in start_transaction()
699 * transaction and commit it, so we needn't do sb_start_intwrite(). in start_transaction()
847 * happen if the transaction commit already started but it's not yet in the
859 * It is used when we want to commit the current the transaction, but
900 /* Wait for a transaction commit to reach at least the given state. */
901 static noinline void wait_for_commit(struct btrfs_transaction *commit, in wait_for_commit() argument
904 struct btrfs_fs_info *fs_info = commit->fs_info; in wait_for_commit()
905 u64 transid = commit->transid; in wait_for_commit()
918 wait_event(commit->commit_wait, commit->state >= min_state); in wait_for_commit()
920 btrfs_put_transaction(commit); in wait_for_commit()
933 commit = list_first_entry_or_null(&fs_info->trans_list, in wait_for_commit()
936 if (!commit || commit->transid > transid) { in wait_for_commit()
940 refcount_inc(&commit->use_count); in wait_for_commit()
1155 * wait for it to finish - we don't want to commit a in btrfs_write_marked_extents()
1182 * those extents are on disk for transaction or log commit. We wait
1198 * left in the io tree. For a log commit, we don't remove them in __btrfs_wait_marked_extents()
1200 * concurrently - we do it only at transaction commit time when in __btrfs_wait_marked_extents()
1261 * log commit.
1499 * from a root nor trying to commit a log tree. in commit_fs_roots()
1548 * Will do all needed qgroup inherit and dirty hack like switch commit
1609 * Now we do a simplified commit transaction, which will: in qgroup_account_snapshot()
1610 * 1) commit all subvolume and extent tree in qgroup_account_snapshot()
1616 * In this simplified commit, we don't really care about other trees in qgroup_account_snapshot()
1643 * transaction commit. This does the actual creation.
2025 * Wait for the current transaction commit to start and block in btrfs_commit_transaction_async()
2036 * If there is a running transaction commit it or if it's already committing,
2037 * wait for its commit to complete. Does not start and commit a new transaction
2120 * scrub. If the transaction commit is being done by the relocation in cleanup_transaction()
2122 * for the commit, and we end up here due to an error in the commit in cleanup_transaction()
2187 * respective handle. This must be called after the transaction commit started
2235 /* Stop the commit early if ->aborted is set */ in btrfs_commit_transaction()
2245 * We only want one transaction commit doing the flushing so we do not in btrfs_commit_transaction()
2269 * will wait for the transaction to commit if it in btrfs_commit_transaction()
2358 * Get the time spent on the work done by the commit thread and not in btrfs_commit_transaction()
2359 * the time spent waiting on a previous commit in btrfs_commit_transaction()
2403 * commit the transaction. We could have started a join before setting in btrfs_commit_transaction()
2432 * We've started the commit, clear the flag in case we were triggered to in btrfs_commit_transaction()
2433 * do an async commit but somebody else started before the transaction in btrfs_commit_transaction()
2446 * extents around in the middle of the commit in btrfs_commit_transaction()
2548 * make sure that before we commit our superblock, no other task can in btrfs_commit_transaction()
2549 * start a new transaction and commit a log tree before we commit our in btrfs_commit_transaction()
2550 * superblock. Anyone trying to commit a log tree locks this mutex before in btrfs_commit_transaction()
2643 btrfs_warn(fs_info, "Skipping commit of aborted transaction."); in btrfs_commit_transaction()