Lines Matching refs:blknr

141 	uint32_t blknr;  in delete_single_indirect_block()  local
155 blknr = le32_to_cpu(inode->b.blocks.indir_block); in delete_single_indirect_block()
156 debug("SIPB releasing %u\n", blknr); in delete_single_indirect_block()
157 bg_idx = blknr / blk_per_grp; in delete_single_indirect_block()
159 remainder = blknr % blk_per_grp; in delete_single_indirect_block()
163 ext4fs_reset_block_bmap(blknr, fs->blk_bmaps[bg_idx], bg_idx); in delete_single_indirect_block()
190 uint32_t blknr; in delete_double_indirect_block() local
211 blknr = le32_to_cpu(inode->b.blocks.double_indir_block); in delete_double_indirect_block()
212 status = ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, in delete_double_indirect_block()
251 blknr = le32_to_cpu(inode->b.blocks.double_indir_block); in delete_double_indirect_block()
252 bg_idx = blknr / blk_per_grp; in delete_double_indirect_block()
254 remainder = blknr % blk_per_grp; in delete_double_indirect_block()
260 ext4fs_reset_block_bmap(blknr, fs->blk_bmaps[bg_idx], bg_idx); in delete_double_indirect_block()
275 debug("DIPB releasing %d\n", blknr); in delete_double_indirect_block()
287 uint32_t blknr; in delete_triple_indirect_block() local
310 blknr = le32_to_cpu(inode->b.blocks.triple_indir_block); in delete_triple_indirect_block()
311 status = ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, in delete_triple_indirect_block()
404 blknr = le32_to_cpu(inode->b.blocks.triple_indir_block); in delete_triple_indirect_block()
405 bg_idx = blknr / blk_per_grp; in delete_triple_indirect_block()
407 remainder = blknr % blk_per_grp; in delete_triple_indirect_block()
411 ext4fs_reset_block_bmap(blknr, fs->blk_bmaps[bg_idx], bg_idx); in delete_triple_indirect_block()
428 debug("tigp buffer itself releasing %d\n", blknr); in delete_triple_indirect_block()
442 long int blknr; in ext4fs_delete_file() local
493 blknr = read_allocated_block(&inode, i, NULL); in ext4fs_delete_file()
494 if (blknr == 0) in ext4fs_delete_file()
496 if (blknr < 0) in ext4fs_delete_file()
498 bg_idx = blknr / blk_per_grp; in ext4fs_delete_file()
500 remainder = blknr % blk_per_grp; in ext4fs_delete_file()
504 ext4fs_reset_block_bmap(blknr, fs->blk_bmaps[bg_idx], in ext4fs_delete_file()
506 debug("EXT4 Block releasing %ld: %d\n", blknr, bg_idx); in ext4fs_delete_file()
699 uint32_t blknr; in ext4fs_deinit() local
708 blknr = read_allocated_block(&inode_journal, in ext4fs_deinit()
710 ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, fs->blksz, in ext4fs_deinit()
714 put_ext4((uint64_t) ((uint64_t)blknr * (uint64_t)fs->blksz), in ext4fs_deinit()
786 long int blknr; in ext4fs_write_file() local
789 blknr = read_allocated_block(file_inode, i, NULL); in ext4fs_write_file()
790 if (blknr <= 0) in ext4fs_write_file()
793 blknr = blknr << log2_fs_blocksize; in ext4fs_write_file()
795 if (blknr) { in ext4fs_write_file()
797 if (delayed_next == blknr) { in ext4fs_write_file()
805 previous_block_number = blknr; in ext4fs_write_file()
806 delayed_start = blknr; in ext4fs_write_file()
809 delayed_next = blknr + in ext4fs_write_file()
813 previous_block_number = blknr; in ext4fs_write_file()
814 delayed_start = blknr; in ext4fs_write_file()
817 delayed_next = blknr + in ext4fs_write_file()