Lines Matching refs:blksz

201 	ALLOC_CACHE_ALIGN_BUFFER(unsigned char, sec_buf, fs->dev_desc->blksz);  in put_ext4()
205 remainder = off & (uint64_t)(fs->dev_desc->blksz - 1); in put_ext4()
254 for (j = 0; j < fs->blksz; j++) { in _get_new_inode_no()
285 if (count == (fs->blksz * 8)) in _get_new_blk_no()
289 if (fs->blksz == 1024) in _get_new_blk_no()
494 zero_buffer = zalloc(fs->blksz); in ext4fs_update_parent_dentry()
499 root_first_block_buffer = zalloc(fs->blksz); in ext4fs_update_parent_dentry()
520 0, fs->blksz, root_first_block_buffer); in ext4fs_update_parent_dentry()
534 if (fs->blksz - totalbytes == le16_to_cpu(dir->direntlen)) { in ext4fs_update_parent_dentry()
563 put_ext4((uint64_t)new_blk_no * fs->blksz, zero_buffer, fs->blksz); in ext4fs_update_parent_dentry()
569 new_size += fs->blksz; in ext4fs_update_parent_dentry()
608 dir->direntlen = cpu_to_le16(fs->blksz - totalbytes); in ext4fs_update_parent_dentry()
644 block_buffer = zalloc(fs->blksz); in search_dir()
656 0, fs->blksz, (char *)block_buffer); in search_dir()
682 } while (offset < fs->blksz); in search_dir()
875 block_buffer = zalloc(fs->blksz); in unlink_filename()
881 fs->blksz, block_buffer); in unlink_filename()
908 } while (offset < fs->blksz); in unlink_filename()
967 char *journal_buffer = zalloc(fs->blksz); in ext4fs_get_new_blk_no()
968 char *zero_buffer = zalloc(fs->blksz); in ext4fs_get_new_blk_no()
982 fs->blksz); in ext4fs_get_new_blk_no()
983 put_ext4(b_bitmap_blk * fs->blksz, in ext4fs_get_new_blk_no()
984 fs->blk_bmaps[i], fs->blksz); in ext4fs_get_new_blk_no()
994 (i * fs->blksz * 8); in ext4fs_get_new_blk_no()
1000 0, fs->blksz, in ext4fs_get_new_blk_no()
1019 if (fs->blksz == 1024) { in ext4fs_get_new_blk_no()
1037 if (fs->blksz == 1024) in ext4fs_get_new_blk_no()
1045 memcpy(fs->blk_bmaps[bg_idx], zero_buffer, fs->blksz); in ext4fs_get_new_blk_no()
1046 put_ext4(b_bitmap_blk * fs->blksz, in ext4fs_get_new_blk_no()
1047 zero_buffer, fs->blksz); in ext4fs_get_new_blk_no()
1063 0, fs->blksz, journal_buffer); in ext4fs_get_new_blk_no()
1095 char *journal_buffer = zalloc(fs->blksz); in ext4fs_get_new_inode_no()
1096 char *zero_buffer = zalloc(fs->blksz); in ext4fs_get_new_inode_no()
1115 put_ext4(i_bitmap_blk * fs->blksz, in ext4fs_get_new_inode_no()
1116 zero_buffer, fs->blksz); in ext4fs_get_new_inode_no()
1120 zero_buffer, fs->blksz); in ext4fs_get_new_inode_no()
1136 0, fs->blksz, in ext4fs_get_new_inode_no()
1159 put_ext4(i_bitmap_blk * fs->blksz, in ext4fs_get_new_inode_no()
1160 zero_buffer, fs->blksz); in ext4fs_get_new_inode_no()
1164 fs->blksz); in ext4fs_get_new_inode_no()
1178 0, fs->blksz, journal_buffer); in ext4fs_get_new_inode_no()
1221 si_buffer = zalloc(fs->blksz); in alloc_single_indirect_block()
1236 0, fs->blksz, (char *)si_buffer); in alloc_single_indirect_block()
1237 memset(si_buffer, '\0', fs->blksz); in alloc_single_indirect_block()
1241 for (i = 0; i < (fs->blksz / sizeof(int)); i++) { in alloc_single_indirect_block()
1258 put_ext4(((uint64_t) ((uint64_t)si_blockno * (uint64_t)fs->blksz)), in alloc_single_indirect_block()
1259 si_start_addr, fs->blksz); in alloc_single_indirect_block()
1290 di_parent_buffer = zalloc(fs->blksz); in alloc_double_indirect_block()
1301 fs->blksz, (char *)di_parent_buffer); in alloc_double_indirect_block()
1307 memset(di_parent_buffer, '\0', fs->blksz); in alloc_double_indirect_block()
1313 for (i = 0; i < (fs->blksz / sizeof(int)); i++) { in alloc_double_indirect_block()
1319 di_child_buff = zalloc(fs->blksz); in alloc_double_indirect_block()
1332 fs->blksz, in alloc_double_indirect_block()
1339 memset(di_child_buff, '\0', fs->blksz); in alloc_double_indirect_block()
1341 for (j = 0; j < (fs->blksz / sizeof(int)); j++) { in alloc_double_indirect_block()
1357 put_ext4(((uint64_t) ((uint64_t)di_blockno_child * (uint64_t)fs->blksz)), in alloc_double_indirect_block()
1358 di_child_buff_start, fs->blksz); in alloc_double_indirect_block()
1365 put_ext4(((uint64_t) ((uint64_t)di_blockno_parent * (uint64_t)fs->blksz)), in alloc_double_indirect_block()
1366 di_block_start_addr, fs->blksz); in alloc_double_indirect_block()
1399 ti_gp_buff = zalloc(fs->blksz); in alloc_triple_indirect_block()
1409 for (i = 0; i < (fs->blksz / sizeof(int)); i++) { in alloc_triple_indirect_block()
1415 ti_parent_buff = zalloc(fs->blksz); in alloc_triple_indirect_block()
1427 for (j = 0; j < (fs->blksz / sizeof(int)); j++) { in alloc_triple_indirect_block()
1433 ti_child_buff = zalloc(fs->blksz); in alloc_triple_indirect_block()
1445 for (k = 0; k < (fs->blksz / sizeof(int)); in alloc_triple_indirect_block()
1465 (uint64_t)fs->blksz)), in alloc_triple_indirect_block()
1466 ti_cbuff_start_addr, fs->blksz); in alloc_triple_indirect_block()
1473 put_ext4(((uint64_t) ((uint64_t)ti_parent_blockno * (uint64_t)fs->blksz)), in alloc_triple_indirect_block()
1474 ti_pbuff_start_addr, fs->blksz); in alloc_triple_indirect_block()
1481 put_ext4(((uint64_t) ((uint64_t)ti_gp_blockno * (uint64_t)fs->blksz)), in alloc_triple_indirect_block()
1482 ti_gp_buff_start_addr, fs->blksz); in alloc_triple_indirect_block()
1532 int blksz = EXT2_BLOCK_SIZE(data); in ext4fs_get_extent_block() local
1556 if (ext4fs_devread((lbaint_t)block << log2_blksz, 0, blksz, in ext4fs_get_extent_block()
1620 int blksz; in read_allocated_block() local
1628 blksz = EXT2_BLOCK_SIZE(ext4fs_root); in read_allocated_block()
1634 char *buf = zalloc(blksz); in read_allocated_block()
1680 else if (fileblock < (INDIRECT_BLOCKS + (blksz / 4))) { in read_allocated_block()
1682 ext4fs_indir1_block = zalloc(blksz); in read_allocated_block()
1688 ext4fs_indir1_size = blksz; in read_allocated_block()
1691 if (blksz != ext4fs_indir1_size) { in read_allocated_block()
1696 ext4fs_indir1_block = zalloc(blksz); in read_allocated_block()
1702 ext4fs_indir1_size = blksz; in read_allocated_block()
1710 blksz, (char *)ext4fs_indir1_block); in read_allocated_block()
1724 else if (fileblock < (INDIRECT_BLOCKS + (blksz / 4 * in read_allocated_block()
1725 (blksz / 4 + 1)))) { in read_allocated_block()
1727 long int perblock = blksz / 4; in read_allocated_block()
1728 long int rblock = fileblock - (INDIRECT_BLOCKS + blksz / 4); in read_allocated_block()
1731 ext4fs_indir1_block = zalloc(blksz); in read_allocated_block()
1737 ext4fs_indir1_size = blksz; in read_allocated_block()
1740 if (blksz != ext4fs_indir1_size) { in read_allocated_block()
1745 ext4fs_indir1_block = zalloc(blksz); in read_allocated_block()
1751 ext4fs_indir1_size = blksz; in read_allocated_block()
1759 0, blksz, in read_allocated_block()
1772 ext4fs_indir2_block = zalloc(blksz); in read_allocated_block()
1778 ext4fs_indir2_size = blksz; in read_allocated_block()
1781 if (blksz != ext4fs_indir2_size) { in read_allocated_block()
1786 ext4fs_indir2_block = zalloc(blksz); in read_allocated_block()
1792 ext4fs_indir2_size = blksz; in read_allocated_block()
1800 blksz, in read_allocated_block()
1817 rblock = fileblock - (INDIRECT_BLOCKS + blksz / 4 + in read_allocated_block()
1818 (blksz / 4 * blksz / 4)); in read_allocated_block()
1819 perblock_child = blksz / 4; in read_allocated_block()
1820 perblock_parent = ((blksz / 4) * (blksz / 4)); in read_allocated_block()
1823 ext4fs_indir1_block = zalloc(blksz); in read_allocated_block()
1829 ext4fs_indir1_size = blksz; in read_allocated_block()
1832 if (blksz != ext4fs_indir1_size) { in read_allocated_block()
1837 ext4fs_indir1_block = zalloc(blksz); in read_allocated_block()
1843 ext4fs_indir1_size = blksz; in read_allocated_block()
1850 << log2_blksz, 0, blksz, in read_allocated_block()
1863 ext4fs_indir2_block = zalloc(blksz); in read_allocated_block()
1869 ext4fs_indir2_size = blksz; in read_allocated_block()
1872 if (blksz != ext4fs_indir2_size) { in read_allocated_block()
1877 ext4fs_indir2_block = zalloc(blksz); in read_allocated_block()
1883 ext4fs_indir2_size = blksz; in read_allocated_block()
1893 log2_blksz, 0, blksz, in read_allocated_block()
1907 ext4fs_indir3_block = zalloc(blksz); in read_allocated_block()
1913 ext4fs_indir3_size = blksz; in read_allocated_block()
1916 if (blksz != ext4fs_indir3_size) { in read_allocated_block()
1921 ext4fs_indir3_block = zalloc(blksz); in read_allocated_block()
1927 ext4fs_indir3_size = blksz; in read_allocated_block()
1937 % (blksz / 4)]) << log2_blksz, 0, in read_allocated_block()
1938 blksz, (char *)ext4fs_indir3_block); in read_allocated_block()
1947 (blksz / in read_allocated_block()