Lines Matching refs:blksz

82 		put_ext4(b_bitmap_blk * fs->blksz,  in ext4fs_update()
83 fs->blk_bmaps[i], fs->blksz); in ext4fs_update()
90 put_ext4(i_bitmap_blk * fs->blksz, in ext4fs_update()
91 fs->inode_bmaps[i], fs->blksz); in ext4fs_update()
95 put_ext4((uint64_t)((uint64_t)fs->gdtable_blkno * (uint64_t)fs->blksz), in ext4fs_update()
97 (fs->blksz * fs->no_blk_pergdt)); in ext4fs_update()
109 int gdsize_total = ROUND(fs->no_blkgrp * fs->gdsize, fs->blksz); in ext4fs_get_bgdtable()
110 fs->no_blk_pergdt = gdsize_total / fs->blksz; in ext4fs_get_bgdtable()
118 0, fs->blksz * fs->no_blk_pergdt, fs->gdtable); in ext4fs_get_bgdtable()
145 char *journal_buffer = zalloc(fs->blksz); in delete_single_indirect_block()
156 if (fs->blksz == 1024) { in delete_single_indirect_block()
171 0, fs->blksz, journal_buffer); in delete_single_indirect_block()
196 char *journal_buffer = zalloc(fs->blksz); in delete_double_indirect_block()
203 di_buffer = zalloc(fs->blksz); in delete_double_indirect_block()
211 fs->blksz, (char *)di_buffer); in delete_double_indirect_block()
212 for (i = 0; i < fs->blksz / sizeof(int); i++) { in delete_double_indirect_block()
218 if (fs->blksz == 1024) { in delete_double_indirect_block()
236 fs->blksz, in delete_double_indirect_block()
251 if (fs->blksz == 1024) { in delete_double_indirect_block()
265 0, fs->blksz, journal_buffer); in delete_double_indirect_block()
295 char *journal_buffer = zalloc(fs->blksz); in delete_triple_indirect_block()
302 tigp_buffer = zalloc(fs->blksz); in delete_triple_indirect_block()
310 fs->blksz, (char *)tigp_buffer); in delete_triple_indirect_block()
311 for (i = 0; i < fs->blksz / sizeof(int); i++) { in delete_triple_indirect_block()
316 tip_buffer = zalloc(fs->blksz); in delete_triple_indirect_block()
321 fs->sect_perblk, 0, fs->blksz, in delete_triple_indirect_block()
323 for (j = 0; j < fs->blksz / sizeof(int); j++) { in delete_triple_indirect_block()
327 if (fs->blksz == 1024) { in delete_triple_indirect_block()
350 fs->blksz, in delete_triple_indirect_block()
369 if (fs->blksz == 1024) { in delete_triple_indirect_block()
386 memset(journal_buffer, '\0', fs->blksz); in delete_triple_indirect_block()
389 fs->blksz, in delete_triple_indirect_block()
404 if (fs->blksz == 1024) { in delete_triple_indirect_block()
418 0, fs->blksz, journal_buffer); in delete_triple_indirect_block()
456 char *journal_buffer = zalloc(fs->blksz); in ext4fs_delete_file()
464 no_blocks = le32_to_cpu(inode.size) / fs->blksz; in ext4fs_delete_file()
465 if (le32_to_cpu(inode.size) % fs->blksz) in ext4fs_delete_file()
488 if (fs->blksz == 1024) { in ext4fs_delete_file()
505 0, fs->blksz, in ext4fs_delete_file()
517 inodes_per_block = fs->blksz / fs->inodesz; in ext4fs_delete_file()
531 read_buffer = zalloc(fs->blksz); in ext4fs_delete_file()
536 0, fs->blksz, read_buffer); in ext4fs_delete_file()
557 memset(journal_buffer, '\0', fs->blksz); in ext4fs_delete_file()
559 fs->sect_perblk, 0, fs->blksz, journal_buffer); in ext4fs_delete_file()
593 fs->blksz = EXT2_BLOCK_SIZE(ext4fs_root); in ext4fs_init()
594 fs->sect_perblk = fs->blksz >> fs->dev_desc->log2blksz; in ext4fs_init()
614 fs->gdtable_blkno = ((EXT2_MIN_BLOCK_SIZE == fs->blksz) + 1); in ext4fs_init()
625 fs->blk_bmaps[i] = zalloc(fs->blksz); in ext4fs_init()
635 fs->blksz, (char *)fs->blk_bmaps[i]); in ext4fs_init()
645 fs->inode_bmaps[i] = zalloc(fs->blksz); in ext4fs_init()
655 0, fs->blksz, in ext4fs_init()
693 char *temp_buff = zalloc(fs->blksz); in ext4fs_deinit()
699 ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, fs->blksz, in ext4fs_deinit()
703 put_ext4((uint64_t) ((uint64_t)blknr * (uint64_t)fs->blksz), in ext4fs_deinit()
704 (struct journal_superblock_t *)temp_buff, fs->blksz); in ext4fs_deinit()
773 blockcnt = ((len + pos) + fs->blksz - 1) / fs->blksz; in ext4fs_write_file()
775 for (i = pos / fs->blksz; i < blockcnt; i++) { in ext4fs_write_file()
777 int blockend = fs->blksz; in ext4fs_write_file()
819 memset(buf, 0, fs->blksz - skipfirst); in ext4fs_write_file()
821 buf += fs->blksz - skipfirst; in ext4fs_write_file()
867 inodes_per_block = fs->blksz / fs->inodesz; in ext4fs_write()
892 blks_reqd_for_file = lldiv(bytes_reqd_for_file, fs->blksz); in ext4fs_write()
893 if (do_div(bytes_reqd_for_file, fs->blksz) != 0) { in ext4fs_write()
924 file_inode->blockcnt = cpu_to_le32((blks_reqd_for_file * fs->blksz) >> in ext4fs_write()
927 temp_ptr = zalloc(fs->blksz); in ext4fs_write()
937 ext4fs_devread((lbaint_t)itable_blkno * fs->sect_perblk, 0, fs->blksz, in ext4fs_write()
959 memset(temp_ptr, '\0', fs->blksz); in ext4fs_write()
961 0, fs->blksz, temp_ptr); in ext4fs_write()