Lines Matching refs:gindex
28 int gindex; variable
43 gindex = 0; 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()
125 gindex = 0; 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()
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()