Lines Matching refs:commit
25 ** otherwise, it could do an async/synchronous commit, or
30 ** commit blocks are sent to disk. Forces commit blocks
64 ** start and kill the commit workqueue
70 #define JOURNAL_TRANS_HALF 1018 /* must be correct to keep the desc and commit
85 #define LIST_COMMIT_PENDING 4 /* someone will commit this list */
88 #define FLUSH_ALL 1 /* flush commit and real blocks */
89 #define COMMIT_NOW 2 /* end and commit this transaction */
319 ** find an available list bitmap. If you can't find one, flush a commit list
998 ** if this journal list still has commit blocks unflushed, send them to disk.
1000 ** log areas must be flushed in order (transaction 2 can't commit before transaction 1)
1001 ** Before the commit block can by written, every other log block must be safely on disk
1024 /* before we can put our commit blocks on disk, we have to make sure everyone older than
1047 /* this commit is done, exit */
1097 /* We're skipping the commit if there's an error */
1101 /* wait on everything written so far before writing the commit
1102 * if we are in barrier mode, send the commit down now
1147 /* If there was a write error in the journal - we can't commit
1167 /* If there was a write error in the journal - we can't commit this
1179 reiserfs_warning(s, "clm-2200", "last commit %lu, current %lu",
1184 /* now, every commit block is on the disk. It is safe to allow blocks freed during this transaction to be reallocated */
1400 /* flush a journal list, both commit and real blocks
1452 /* start by putting the commit list on disk. This will also flush
1453 ** the commit lists of any olders transactions
1484 /* This transaction failed commit. Don't write out to the disk */
2038 /* compares description block with commit block. returns 1 if they differ, 0 if they are the same */
2041 struct reiserfs_journal_commit *commit)
2043 if (get_commit_trans_id(commit) != get_desc_trans_id(desc) ||
2044 get_commit_trans_len(commit) != get_desc_trans_len(desc) ||
2045 get_commit_trans_len(commit) > SB_JOURNAL(sb)->j_trans_max ||
2046 get_commit_trans_len(commit) <= 0) {
2053 ** returns -1 if it found a corrupt commit block
2054 ** returns 1 if both desc and commit were valid
2062 struct reiserfs_journal_commit *commit;
2109 commit = (struct reiserfs_journal_commit *)c_bh->b_data;
2110 if (journal_compare_desc_commit(sb, desc, commit)) {
2112 "journal_transaction_is_valid, commit offset %ld had bad "
2116 get_commit_trans_id(commit),
2117 get_commit_trans_len(commit));
2165 struct reiserfs_journal_commit *commit;
2207 commit = (struct reiserfs_journal_commit *)c_bh->b_data;
2208 if (journal_compare_desc_commit(sb, desc, commit)) {
2211 "commit offset %llu had bad time %d or length %d",
2214 get_commit_trans_id(commit),
2215 get_commit_trans_len(commit));
2259 le32_to_cpu(commit->
2883 "max commit age %u, max trans age %u\n",
3148 * wait for someone else to do a commit
3556 /* syncs the commit blocks, but does not force the real buffers to disk
3588 /* last entry is the youngest, commit it and you get everything */
3615 * too old, finish it, and force the commit blocks to disk
3629 ** an async commit so that kreiserfsd can do it later
3638 ** returns 0 if do_journal_end should return right away, returns 1 if do_journal_end should finish the commit
3642 ** flushes the commit list and returns 0.
3682 ** Then, we flush the commit or journal list, and just return 0
3732 /* don't batch when syncing the commit or flushing the whole trans */
3898 * the barrier hasn't been started yet on the commit
4000 ** long and ugly. If flush, will not return until all commit
4002 ** If no_async, won't return until all commit blocks are on disk.
4017 struct reiserfs_journal_commit *commit;
4018 struct buffer_head *c_bh; /* commit bh */
4104 /* setup commit block. Don't write (keep it clean too) this one until after everyone else is written */
4108 commit = (struct reiserfs_journal_commit *)c_bh->b_data;
4110 set_commit_trans_id(commit, journal->j_trans_id);
4116 /* we lock the commit before doing anything because
4123 /* save the transaction id in case we need to commit it later */
4138 ** copy into real block index array in the commit or desc block
4177 commit->j_realblock[i - trans_half] =
4187 set_commit_trans_len(commit, journal->j_len);
4193 * dirty now too. Don't mark the commit block dirty until all the
4242 ** c_bh must be written after all other commit blocks,
4296 ** if we don't flush the commit list right now, we put it into