Lines Matching refs:blksz

59 	if (fs->blksz == 4096) {  in ext4fs_init_journal()
60 temp = zalloc(fs->blksz); in ext4fs_init_journal()
63 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_init_journal()
66 ext4fs_devread(0, 0, fs->blksz, temp); in ext4fs_init_journal()
68 memcpy(journal_ptr[gindex]->buf, temp, fs->blksz); in ext4fs_init_journal()
72 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_init_journal()
99 (uint64_t)fs->blksz), dirty_block_ptr[i]->buf, in ext4fs_dump_metadata()
100 fs->blksz); in ext4fs_dump_metadata()
138 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_log_gdt()
141 memcpy(journal_ptr[gindex]->buf, gd_table, fs->blksz); in ext4fs_log_gdt()
142 gd_table += fs->blksz; in ext4fs_log_gdt()
171 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_log_journal()
175 memcpy(journal_ptr[gindex]->buf, journal_buffer, fs->blksz); in ext4fs_log_journal()
196 dirty_block_ptr[gd_index]->buf = zalloc(fs->blksz); in ext4fs_put_metadata()
200 memcpy(dirty_block_ptr[gd_index]->buf, metadata_buffer, fs->blksz); in ext4fs_put_metadata()
254 node->content = zalloc(fs->blksz); in ext4fs_push_revoke_blk()
257 memcpy(node->content, buffer, fs->blksz); in ext4fs_push_revoke_blk()
342 char *temp_buff = zalloc(fs->blksz); in recover_transaction()
343 char *metadata_buff = zalloc(fs->blksz); in recover_transaction()
351 ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, fs->blksz, in recover_transaction()
361 if (ofs > fs->blksz) in recover_transaction()
377 fs->blksz, metadata_buff); in recover_transaction()
378 put_ext4((uint64_t)((uint64_t)be32_to_cpu(tag->block) * (uint64_t)fs->blksz), in recover_transaction()
379 metadata_buff, (uint32_t) fs->blksz); in recover_transaction()
412 temp_buff = zalloc(fs->blksz); in ext4fs_check_journal_state()
415 temp_buff1 = zalloc(fs->blksz); in ext4fs_check_journal_state()
423 ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, fs->blksz, in ext4fs_check_journal_state()
447 memset(temp_buff1, '\0', fs->blksz); in ext4fs_check_journal_state()
449 0, fs->blksz, temp_buff1); in ext4fs_check_journal_state()
471 if (ofs > fs->blksz) in ext4fs_check_journal_state()
541 put_ext4((uint64_t) ((uint64_t)blknr * (uint64_t)fs->blksz), in ext4fs_check_journal_state()
543 (uint32_t) fs->blksz); in ext4fs_check_journal_state()
563 char *temp_buff = zalloc(fs->blksz); in update_descriptor_block()
570 ext4fs_devread((lbaint_t)jsb_blknr * fs->sect_perblk, 0, fs->blksz, in update_descriptor_block()
577 buf = zalloc(fs->blksz); in update_descriptor_block()
600 put_ext4((uint64_t) ((uint64_t)blknr * (uint64_t)fs->blksz), buf, (uint32_t) fs->blksz); in update_descriptor_block()
614 char *temp_buff = zalloc(fs->blksz); in update_commit_block()
622 ext4fs_devread((lbaint_t)jsb_blknr * fs->sect_perblk, 0, fs->blksz, in update_commit_block()
629 buf = zalloc(fs->blksz); in update_commit_block()
635 put_ext4((uint64_t) ((uint64_t)blknr * (uint64_t)fs->blksz), buf, (uint32_t) fs->blksz); in update_commit_block()
654 put_ext4((uint64_t) ((uint64_t)blknr * (uint64_t)fs->blksz), in ext4fs_update_journal()
655 journal_ptr[i]->buf, fs->blksz); in ext4fs_update_journal()