journal.c (08cd84c81f27d5bd22ba958b7cae6d566c509280) journal.c (77933d7276ee8fa0e2947641941a6f7a100a327b)
1/*
2** Write ahead logging implementation copyright Chris Mason 2000
3**
4** The background commits make this code very interelated, and
5** overly complex. I need to rethink things a bit....The major players:
6**
7** journal_begin -- call with the number of blocks you expect to log.
8** If the current transaction is too

--- 542 unchanged lines hidden (view full) ---

551 cn->hprev = NULL;
552 if (cn_orig) {
553 cn_orig->hprev = cn;
554 }
555 journal_hash(table, cn->sb, cn->blocknr) = cn;
556}
557
558/* lock the current transaction */
1/*
2** Write ahead logging implementation copyright Chris Mason 2000
3**
4** The background commits make this code very interelated, and
5** overly complex. I need to rethink things a bit....The major players:
6**
7** journal_begin -- call with the number of blocks you expect to log.
8** If the current transaction is too

--- 542 unchanged lines hidden (view full) ---

551 cn->hprev = NULL;
552 if (cn_orig) {
553 cn_orig->hprev = cn;
554 }
555 journal_hash(table, cn->sb, cn->blocknr) = cn;
556}
557
558/* lock the current transaction */
559inline static void lock_journal(struct super_block *p_s_sb)
559static inline void lock_journal(struct super_block *p_s_sb)
560{
561 PROC_INFO_INC(p_s_sb, journal.lock_journal);
562 down(&SB_JOURNAL(p_s_sb)->j_lock);
563}
564
565/* unlock the current transaction */
560{
561 PROC_INFO_INC(p_s_sb, journal.lock_journal);
562 down(&SB_JOURNAL(p_s_sb)->j_lock);
563}
564
565/* unlock the current transaction */
566inline static void unlock_journal(struct super_block *p_s_sb)
566static inline void unlock_journal(struct super_block *p_s_sb)
567{
568 up(&SB_JOURNAL(p_s_sb)->j_lock);
569}
570
571static inline void get_journal_list(struct reiserfs_journal_list *jl)
572{
573 jl->j_refcount++;
574}

--- 3655 unchanged lines hidden ---
567{
568 up(&SB_JOURNAL(p_s_sb)->j_lock);
569}
570
571static inline void get_journal_list(struct reiserfs_journal_list *jl)
572{
573 jl->j_refcount++;
574}

--- 3655 unchanged lines hidden ---