Lines Matching refs:blknr
53 journal_ptr[i]->blknr = -1; in ext4fs_init_journal()
56 dirty_block_ptr[i]->blknr = -1; in ext4fs_init_journal()
69 journal_ptr[gindex++]->blknr = 0; in ext4fs_init_journal()
76 journal_ptr[gindex++]->blknr = 1; in ext4fs_init_journal()
96 if (dirty_block_ptr[i]->blknr == -1) in ext4fs_dump_metadata()
98 put_ext4((uint64_t) ((uint64_t)dirty_block_ptr[i]->blknr * in ext4fs_dump_metadata()
108 if (dirty_block_ptr[i]->blknr == -1) in ext4fs_free_journal()
115 if (journal_ptr[i]->blknr == -1) in ext4fs_free_journal()
143 journal_ptr[gindex++]->blknr = var++; in ext4fs_log_gdt()
154 int ext4fs_log_journal(char *journal_buffer, uint32_t blknr) in ext4fs_log_journal() argument
165 if (journal_ptr[i]->blknr == -1) in ext4fs_log_journal()
167 if (journal_ptr[i]->blknr == blknr) in ext4fs_log_journal()
176 journal_ptr[gindex++]->blknr = blknr; in ext4fs_log_journal()
186 int ext4fs_put_metadata(char *metadata_buffer, uint32_t blknr) in ext4fs_put_metadata() argument
194 assert(dirty_block_ptr[gd_index]->blknr == blknr); in ext4fs_put_metadata()
201 dirty_block_ptr[gd_index++]->blknr = blknr; in ext4fs_put_metadata()
292 int check_blknr_for_revoke(long int blknr, int sequence_no) in check_blknr_for_revoke() argument
311 if (blocknr == blknr) in check_blknr_for_revoke()
337 long int blknr; in recover_transaction() local
349 blknr = read_allocated_block((struct ext2_inode *) in recover_transaction()
351 ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, fs->blksz, in recover_transaction()
375 blknr = read_allocated_block(&inode_journal, i); in recover_transaction()
376 ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, in recover_transaction()
398 long int blknr; in ext4fs_check_journal_state() local
422 blknr = read_allocated_block(&inode_journal, EXT2_JOURNAL_SUPERBLOCK); in ext4fs_check_journal_state()
423 ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, fs->blksz, in ext4fs_check_journal_state()
446 blknr = read_allocated_block(&inode_journal, i); in ext4fs_check_journal_state()
448 ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, in ext4fs_check_journal_state()
539 blknr = read_allocated_block(&inode_journal, in ext4fs_check_journal_state()
541 put_ext4((uint64_t) ((uint64_t)blknr * (uint64_t)fs->blksz), in ext4fs_check_journal_state()
552 static void update_descriptor_block(long int blknr) in update_descriptor_block() argument
587 if (journal_ptr[i]->blknr == -1) in update_descriptor_block()
590 tag.block = cpu_to_be32(journal_ptr[i]->blknr); in update_descriptor_block()
596 tag.block = cpu_to_be32(journal_ptr[--i]->blknr); 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()
606 static void update_commit_block(long int blknr) in update_commit_block() argument
635 put_ext4((uint64_t) ((uint64_t)blknr * (uint64_t)fs->blksz), buf, (uint32_t) fs->blksz); in update_commit_block()
645 long int blknr; in ext4fs_update_journal() local
648 blknr = read_allocated_block(&inode_journal, jrnl_blk_idx++); in ext4fs_update_journal()
649 update_descriptor_block(blknr); in ext4fs_update_journal()
651 if (journal_ptr[i]->blknr == -1) in ext4fs_update_journal()
653 blknr = read_allocated_block(&inode_journal, jrnl_blk_idx++); in ext4fs_update_journal()
654 put_ext4((uint64_t) ((uint64_t)blknr * (uint64_t)fs->blksz), in ext4fs_update_journal()
657 blknr = read_allocated_block(&inode_journal, jrnl_blk_idx++); in ext4fs_update_journal()
658 update_commit_block(blknr); in ext4fs_update_journal()