Lines Matching refs:dirty_block_ptr
32 struct dirty_blocks *dirty_block_ptr[MAX_JOURNAL_ENTRIES]; variable
51 dirty_block_ptr[i] = zalloc(sizeof(struct dirty_blocks)); in ext4fs_init_journal()
52 if (!dirty_block_ptr[i]) in ext4fs_init_journal()
57 dirty_block_ptr[i]->buf = NULL; in ext4fs_init_journal()
58 dirty_block_ptr[i]->blknr = -1; in ext4fs_init_journal()
98 if (dirty_block_ptr[i]->blknr == -1) in ext4fs_dump_metadata()
100 put_ext4((uint64_t) ((uint64_t)dirty_block_ptr[i]->blknr * in ext4fs_dump_metadata()
101 (uint64_t)fs->blksz), dirty_block_ptr[i]->buf, in ext4fs_dump_metadata()
110 if (dirty_block_ptr[i]->blknr == -1) in ext4fs_free_journal()
112 free(dirty_block_ptr[i]->buf); in ext4fs_free_journal()
123 free(dirty_block_ptr[i]); in ext4fs_free_journal()
191 if (dirty_block_ptr[gd_index]->buf) in ext4fs_put_metadata()
192 assert(dirty_block_ptr[gd_index]->blknr == blknr); in ext4fs_put_metadata()
194 dirty_block_ptr[gd_index]->buf = zalloc(fs->blksz); in ext4fs_put_metadata()
196 if (!dirty_block_ptr[gd_index]->buf) in ext4fs_put_metadata()
198 memcpy(dirty_block_ptr[gd_index]->buf, metadata_buffer, fs->blksz); in ext4fs_put_metadata()
199 dirty_block_ptr[gd_index++]->blknr = blknr; in ext4fs_put_metadata()