Lines Matching refs:journal_ptr

31 struct journal_log *journal_ptr[MAX_JOURNAL_ENTRIES];  variable
48 journal_ptr[i] = zalloc(sizeof(struct journal_log)); in ext4fs_init_journal()
49 if (!journal_ptr[i]) in ext4fs_init_journal()
54 journal_ptr[i]->buf = NULL; in ext4fs_init_journal()
55 journal_ptr[i]->blknr = -1; in ext4fs_init_journal()
65 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_init_journal()
66 if (!journal_ptr[gindex]->buf) in ext4fs_init_journal()
70 memcpy(journal_ptr[gindex]->buf, temp, fs->blksz); in ext4fs_init_journal()
71 journal_ptr[gindex++]->blknr = 0; in ext4fs_init_journal()
74 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_init_journal()
75 if (!journal_ptr[gindex]->buf) in ext4fs_init_journal()
77 memcpy(journal_ptr[gindex]->buf, fs->sb, SUPERBLOCK_SIZE); in ext4fs_init_journal()
78 journal_ptr[gindex++]->blknr = 1; in ext4fs_init_journal()
116 if (journal_ptr[i]->blknr == -1) in ext4fs_free_journal()
118 free(journal_ptr[i]->buf); in ext4fs_free_journal()
122 free(journal_ptr[i]); in ext4fs_free_journal()
136 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_log_gdt()
137 if (!journal_ptr[gindex]->buf) in ext4fs_log_gdt()
139 memcpy(journal_ptr[gindex]->buf, gd_table, fs->blksz); in ext4fs_log_gdt()
141 journal_ptr[gindex++]->blknr = var++; in ext4fs_log_gdt()
163 if (journal_ptr[i]->blknr == -1) in ext4fs_log_journal()
165 if (journal_ptr[i]->blknr == blknr) in ext4fs_log_journal()
169 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_log_journal()
170 if (!journal_ptr[gindex]->buf) in ext4fs_log_journal()
173 memcpy(journal_ptr[gindex]->buf, journal_buffer, fs->blksz); in ext4fs_log_journal()
174 journal_ptr[gindex++]->blknr = blknr; in ext4fs_log_journal()
588 if (journal_ptr[i]->blknr == -1) in update_descriptor_block()
591 tag.block = cpu_to_be32(journal_ptr[i]->blknr); in update_descriptor_block()
597 tag.block = cpu_to_be32(journal_ptr[--i]->blknr); in update_descriptor_block()
656 if (journal_ptr[i]->blknr == -1) in ext4fs_update_journal()
661 journal_ptr[i]->buf, fs->blksz); in ext4fs_update_journal()