Lines Matching defs:journal
59 #include "journal.h"
189 if (journal_start_commit(OCFS2_SB(sb)->journal->j_journal, &target)) {
191 log_wait_commit(OCFS2_SB(sb)->journal->j_journal,
1107 /* This should be sent *after* we recovered our journal as it
1248 struct ocfs2_journal *journal;
1370 /* initialize our journal structure */
1372 journal = kzalloc(sizeof(struct ocfs2_journal), GFP_KERNEL);
1373 if (!journal) {
1374 mlog(ML_ERROR, "unable to alloc journal\n");
1378 osb->journal = journal;
1379 journal->j_osb = osb;
1381 atomic_set(&journal->j_num_trans, 0);
1382 init_rwsem(&journal->j_trans_barrier);
1383 init_waitqueue_head(&journal->j_checkpointed);
1384 spin_lock_init(&journal->j_lock);
1385 journal->j_trans_id = (unsigned long) 1;
1386 INIT_LIST_HEAD(&journal->j_la_cleanups);
1387 INIT_WORK(&journal->j_recovery_work, ocfs2_complete_recovery);
1388 journal->j_state = OCFS2_JOURNAL_FREE;
1565 /* Init our journal object. */
1566 status = ocfs2_journal_init(osb->journal, &dirty);
1568 mlog(ML_ERROR, "Could not initialize journal!\n");
1572 /* If the journal was unmounted cleanly then we don't want to
1576 status = ocfs2_journal_wipe(osb->journal, 0);
1588 /* will play back anything left in the journal. */
1589 ocfs2_journal_load(osb->journal, local);
1620 /* go through each journal, trylock it and if you get the
1651 kfree(osb->journal);
1706 * ocfs2_handle_error, so we only use for things like journal errors,
1726 * TODO: This should abort the journal and alert other nodes