Lines Matching refs:neh
1029 struct ext4_extent_header *neh; in ext4_ext_split() local
1102 neh = ext_block_hdr(bh); in ext4_ext_split()
1103 neh->eh_entries = 0; in ext4_ext_split()
1104 neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode, 0)); in ext4_ext_split()
1105 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_split()
1106 neh->eh_depth = 0; in ext4_ext_split()
1122 ex = EXT_FIRST_EXTENT(neh); in ext4_ext_split()
1124 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1127 ext4_extent_block_csum_set(inode, neh); in ext4_ext_split()
1175 neh = ext_block_hdr(bh); in ext4_ext_split()
1176 neh->eh_entries = cpu_to_le16(1); in ext4_ext_split()
1177 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_split()
1178 neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode, 0)); in ext4_ext_split()
1179 neh->eh_depth = cpu_to_le16(depth - i); in ext4_ext_split()
1180 fidx = EXT_FIRST_INDEX(neh); in ext4_ext_split()
1204 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1206 ext4_extent_block_csum_set(inode, neh); in ext4_ext_split()
1266 struct ext4_extent_header *neh; in ext4_ext_grow_indepth() local
1301 neh = ext_block_hdr(bh); in ext4_ext_grow_indepth()
1305 neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode, 0)); in ext4_ext_grow_indepth()
1307 neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode, 0)); in ext4_ext_grow_indepth()
1308 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_grow_indepth()
1309 ext4_extent_block_csum_set(inode, neh); in ext4_ext_grow_indepth()
1318 neh = ext_inode_hdr(inode); in ext4_ext_grow_indepth()
1319 neh->eh_entries = cpu_to_le16(1); in ext4_ext_grow_indepth()
1320 ext4_idx_store_pblock(EXT_FIRST_INDEX(neh), newblock); in ext4_ext_grow_indepth()
1321 if (neh->eh_depth == 0) { in ext4_ext_grow_indepth()
1323 neh->eh_max = cpu_to_le16(ext4_ext_space_root_idx(inode, 0)); in ext4_ext_grow_indepth()
1324 EXT_FIRST_INDEX(neh)->ei_block = in ext4_ext_grow_indepth()
1325 EXT_FIRST_EXTENT(neh)->ee_block; in ext4_ext_grow_indepth()
1328 le16_to_cpu(neh->eh_entries), le16_to_cpu(neh->eh_max), in ext4_ext_grow_indepth()
1329 le32_to_cpu(EXT_FIRST_INDEX(neh)->ei_block), in ext4_ext_grow_indepth()
1330 ext4_idx_pblock(EXT_FIRST_INDEX(neh))); in ext4_ext_grow_indepth()
1332 le16_add_cpu(&neh->eh_depth, 1); in ext4_ext_grow_indepth()