Lines Matching refs:neh
1052 struct ext4_extent_header *neh; in ext4_ext_split() local
1130 neh = ext_block_hdr(bh); in ext4_ext_split()
1131 neh->eh_entries = 0; in ext4_ext_split()
1132 neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode, 0)); in ext4_ext_split()
1133 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_split()
1134 neh->eh_depth = 0; in ext4_ext_split()
1135 neh->eh_generation = 0; in ext4_ext_split()
1151 ex = EXT_FIRST_EXTENT(neh); in ext4_ext_split()
1153 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1158 sizeof(struct ext4_extent) * le16_to_cpu(neh->eh_entries); in ext4_ext_split()
1160 ext4_extent_block_csum_set(inode, neh); in ext4_ext_split()
1208 neh = ext_block_hdr(bh); in ext4_ext_split()
1209 neh->eh_entries = cpu_to_le16(1); in ext4_ext_split()
1210 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_split()
1211 neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode, 0)); in ext4_ext_split()
1212 neh->eh_depth = cpu_to_le16(depth - i); in ext4_ext_split()
1213 neh->eh_generation = 0; in ext4_ext_split()
1214 fidx = EXT_FIRST_INDEX(neh); in ext4_ext_split()
1238 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1242 (sizeof(struct ext4_extent) * le16_to_cpu(neh->eh_entries)); in ext4_ext_split()
1245 ext4_extent_block_csum_set(inode, neh); in ext4_ext_split()
1305 struct ext4_extent_header *neh; in ext4_ext_grow_indepth() local
1343 neh = ext_block_hdr(bh); in ext4_ext_grow_indepth()
1347 neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode, 0)); in ext4_ext_grow_indepth()
1349 neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode, 0)); in ext4_ext_grow_indepth()
1350 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_grow_indepth()
1351 ext4_extent_block_csum_set(inode, neh); in ext4_ext_grow_indepth()
1360 neh = ext_inode_hdr(inode); in ext4_ext_grow_indepth()
1361 neh->eh_entries = cpu_to_le16(1); in ext4_ext_grow_indepth()
1362 ext4_idx_store_pblock(EXT_FIRST_INDEX(neh), newblock); in ext4_ext_grow_indepth()
1363 if (neh->eh_depth == 0) { in ext4_ext_grow_indepth()
1365 neh->eh_max = cpu_to_le16(ext4_ext_space_root_idx(inode, 0)); in ext4_ext_grow_indepth()
1366 EXT_FIRST_INDEX(neh)->ei_block = in ext4_ext_grow_indepth()
1367 EXT_FIRST_EXTENT(neh)->ee_block; in ext4_ext_grow_indepth()
1370 le16_to_cpu(neh->eh_entries), le16_to_cpu(neh->eh_max), in ext4_ext_grow_indepth()
1371 le32_to_cpu(EXT_FIRST_INDEX(neh)->ei_block), in ext4_ext_grow_indepth()
1372 ext4_idx_pblock(EXT_FIRST_INDEX(neh))); in ext4_ext_grow_indepth()
1374 le16_add_cpu(&neh->eh_depth, 1); in ext4_ext_grow_indepth()