Home | History | Annotate | Download | only in linux

Lines Matching refs:journal

28 #include <linux/journal-head.h>
118 typedef struct journal_s journal_t; /* Journal control structure */
153 * The block tag: used to describe a single buffer in the journal
172 /* Definitions for the journal tag flags word: */
180 * The journal superblock. All fields are in big-endian byte order.
188 /* Static information describing the journal */
189 __be32 s_blocksize; /* journal device blocksize */
190 __be32 s_maxlen; /* total blocks in journal file */
208 __u8 s_uuid[16]; /* 128-bit uuid for journal */
216 __be32 s_max_transaction; /* Limit of journal blocks per trans.*/
440 /* Pointer to the journal for this transaction. [no locking] */
571 * @j_errno: Is there an outstanding uncleared error on the journal (from a
576 * @j_state_lock: Protect the various scalars in the journal
591 * @j_head: Journal head - identifies the first unused block in the journal
592 * @j_tail: Journal tail - identifies the oldest still-used block in the
593 * journal.
594 * @j_free: Journal free - how many free blocks are there in the journal?
597 * @j_dev: Device where we store the journal
598 * @j_blocksize: blocksize for the location where we store the journal.
600 * journal
601 * @j_fs_dev: Device which holds the client fs. For internal journal this will
603 * @j_maxlen: Total maximum capacity of the journal region on disk.
605 * @j_inode: Optional inode where we store the journal. If present, all journal
614 * @j_task: Pointer to the current commit thread for this journal
637 * Is there an outstanding uncleared error on the journal (from a prior
650 * Protect the various scalars in the journal
705 * Journal head: identifies the first unused block in the journal.
711 * Journal tail: identifies the oldest still-used block in the journal.
717 * Journal free: how many free blocks are there in the journal?
723 * Journal start and end: the block numbers of the first usable block
724 * and one beyond the last usable block in the journal. [j_state_lock]
731 * store the journal.
738 * Device which holds the client fs. For internal journal this will be
743 /* Total maximum capacity of the journal region on disk. */
751 /* Optional inode where we store the journal. If present, all */
752 /* journal block numbers are mapped into this inode via */
779 * Journal uuid: identifies the object (filesystem, LVM volume etc)
780 * backed by this journal. This will eventually be replaced by an array
782 * journal and to perform atomic updates across them.
786 /* Pointer to the current commit thread for this journal */
827 * Journal flag definitions
829 #define JFS_UNMOUNT 0x001 /* Journal thread is being destroyed */
832 #define JFS_FLUSHED 0x008 /* The journal superblock has been flushed */
833 #define JFS_LOADED 0x010 /* The journal superblock has been loaded */
860 int __journal_clean_checkpoint_list(journal_t *journal);
875 * Journal locking.
877 * We need to lock the journal during transaction state changes so that nobody
882 * journal structures from interrupts.
927 extern int journal_load (journal_t *journal);
929 extern int journal_recover (journal_t *journal);
981 extern void journal_switch_revoke_table(journal_t *journal);
990 int __log_space_left(journal_t *); /* Called with journal locked */
991 int log_start_commit(journal_t *journal, tid_t tid);
992 int __log_start_commit(journal_t *journal, tid_t tid);
993 int journal_start_commit(journal_t *journal, tid_t *tid);
994 int journal_force_commit_nested(journal_t *journal);
995 int log_wait_commit(journal_t *journal, tid_t tid);
996 int log_do_checkpoint(journal_t *journal);
998 void __log_wait_for_space(journal_t *journal);
1021 static inline int is_journal_aborted(journal_t *journal)
1023 return journal->j_flags & JFS_ABORT;
1058 * Return the minimum number of blocks which must be free in the journal
1061 static inline int jbd_space_needed(journal_t *journal)
1063 int nblocks = journal->j_max_transaction_buffers;
1064 if (journal->j_committing_transaction)
1065 nblocks += journal->j_committing_transaction->
1082 #define BJ_Reserved 7 /* Buffer is reserved for access by journal */