Lines Matching defs:commit

26  *                   otherwise, it could do an async/synchronous commit, or
31 * commit blocks are sent to disk. Forces commit blocks
60 /* must be correct to keep the desc and commit structs at 4k */
78 #define LIST_COMMIT_PENDING 4 /* someone will commit this list */
81 #define FLUSH_ALL 1 /* flush commit and real blocks */
82 #define COMMIT_NOW 2 /* end and commit this transaction */
306 * find an available list bitmap. If you can't find one, flush a commit list
964 * if this journal list still has commit blocks unflushed, send them to disk.
966 * log areas must be flushed in order (transaction 2 can't commit before
967 * transaction 1) Before the commit block can by written, every other log
989 * before we can put our commit blocks on disk, we have to make
1015 /* this commit is done, exit */
1101 * If there was a write error in the journal - we can't commit
1120 * If there was a write error in the journal - we can't commit this
1133 reiserfs_warning(s, "clm-2200", "last commit %lu, current %lu",
1139 * now, every commit block is on the disk. It is safe to allow
1337 * flush a journal list, both commit and real blocks
1388 * start by putting the commit list on disk. This will also flush
1389 * the commit lists of any olders transactions
1422 * This transaction failed commit.
1982 * compares description block with commit block.
1987 struct reiserfs_journal_commit *commit)
1989 if (get_commit_trans_id(commit) != get_desc_trans_id(desc) ||
1990 get_commit_trans_len(commit) != get_desc_trans_len(desc) ||
1991 get_commit_trans_len(commit) > SB_JOURNAL(sb)->j_trans_max ||
1992 get_commit_trans_len(commit) <= 0) {
2000 * returns -1 if it found a corrupt commit block
2001 * returns 1 if both desc and commit were valid
2010 struct reiserfs_journal_commit *commit;
2060 commit = (struct reiserfs_journal_commit *)c_bh->b_data;
2061 if (journal_compare_desc_commit(sb, desc, commit)) {
2063 "journal_transaction_is_valid, commit offset %ld had bad "
2067 get_commit_trans_id(commit),
2068 get_commit_trans_len(commit));
2117 struct reiserfs_journal_commit *commit;
2159 commit = (struct reiserfs_journal_commit *)c_bh->b_data;
2160 if (journal_compare_desc_commit(sb, desc, commit)) {
2163 "commit offset %llu had bad time %d or length %d",
2166 get_commit_trans_id(commit),
2167 get_commit_trans_len(commit));
2216 le32_to_cpu(commit->
2836 "max commit age %u, max trans age %u\n",
3103 * have to do is wait for someone else to do a commit
3526 * syncs the commit blocks, but does not force the real buffers to disk
3556 /* last entry is the youngest, commit it and you get everything */
3584 * too old, finish it, and force the commit blocks to disk
3598 * no sense to do an async commit so that kreiserfsd
3608 * do_journal_end should finish the commit
3613 * flushes the commit list and returns 0.
3657 * Then, we flush the commit or journal list, and just return 0
3711 /* don't batch when syncing the commit or flushing the whole trans */
3898 * the barrier hasn't been started yet on the commit
3981 * long and ugly. If flush, will not return until all commit
3983 * If no_async, won't return until all commit blocks are on disk.
3997 struct reiserfs_journal_commit *commit;
3998 struct buffer_head *c_bh; /* commit bh */
4093 * setup commit block. Don't write (keep it clean too) this one
4099 commit = (struct reiserfs_journal_commit *)c_bh->b_data;
4101 set_commit_trans_id(commit, journal->j_trans_id);
4108 * we lock the commit before doing anything because
4115 /* save the transaction id in case we need to commit it later */
4131 * copy into real block index array in the commit or desc block
4171 commit->j_realblock[i - trans_half] =
4181 set_commit_trans_len(commit, journal->j_len);
4191 * dirty now too. Don't mark the commit block dirty until all the
4245 * c_bh must be written after all other commit blocks,
4302 * if we don't flush the commit list right now, we put it into