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 */
1100 * If there was a write error in the journal - we can't commit
1119 * If there was a write error in the journal - we can't commit this
1132 reiserfs_warning(s, "clm-2200", "last commit %lu, current %lu",
1138 * now, every commit block is on the disk. It is safe to allow
1336 * flush a journal list, both commit and real blocks
1387 * start by putting the commit list on disk. This will also flush
1388 * the commit lists of any olders transactions
1421 * This transaction failed commit.
1981 * compares description block with commit block.
1986 struct reiserfs_journal_commit *commit)
1988 if (get_commit_trans_id(commit) != get_desc_trans_id(desc) ||
1989 get_commit_trans_len(commit) != get_desc_trans_len(desc) ||
1990 get_commit_trans_len(commit) > SB_JOURNAL(sb)->j_trans_max ||
1991 get_commit_trans_len(commit) <= 0) {
1999 * returns -1 if it found a corrupt commit block
2000 * returns 1 if both desc and commit were valid
2009 struct reiserfs_journal_commit *commit;
2059 commit = (struct reiserfs_journal_commit *)c_bh->b_data;
2060 if (journal_compare_desc_commit(sb, desc, commit)) {
2062 "journal_transaction_is_valid, commit offset %ld had bad "
2066 get_commit_trans_id(commit),
2067 get_commit_trans_len(commit));
2116 struct reiserfs_journal_commit *commit;
2158 commit = (struct reiserfs_journal_commit *)c_bh->b_data;
2159 if (journal_compare_desc_commit(sb, desc, commit)) {
2162 "commit offset %llu had bad time %d or length %d",
2165 get_commit_trans_id(commit),
2166 get_commit_trans_len(commit));
2215 le32_to_cpu(commit->
2829 "max commit age %u, max trans age %u\n",
3098 * have to do is wait for someone else to do a commit
3521 * syncs the commit blocks, but does not force the real buffers to disk
3551 /* last entry is the youngest, commit it and you get everything */
3579 * too old, finish it, and force the commit blocks to disk
3593 * no sense to do an async commit so that kreiserfsd
3603 * do_journal_end should finish the commit
3608 * flushes the commit list and returns 0.
3652 * Then, we flush the commit or journal list, and just return 0
3706 /* don't batch when syncing the commit or flushing the whole trans */
3893 * the barrier hasn't been started yet on the commit
3976 * long and ugly. If flush, will not return until all commit
3978 * If no_async, won't return until all commit blocks are on disk.
3992 struct reiserfs_journal_commit *commit;
3993 struct buffer_head *c_bh; /* commit bh */
4088 * setup commit block. Don't write (keep it clean too) this one
4094 commit = (struct reiserfs_journal_commit *)c_bh->b_data;
4096 set_commit_trans_id(commit, journal->j_trans_id);
4103 * we lock the commit before doing anything because
4110 /* save the transaction id in case we need to commit it later */
4126 * copy into real block index array in the commit or desc block
4166 commit->j_realblock[i - trans_half] =
4176 set_commit_trans_len(commit, journal->j_len);
4186 * dirty now too. Don't mark the commit block dirty until all the
4240 * c_bh must be written after all other commit blocks,
4297 * if we don't flush the commit list right now, we put it into