Lines Matching refs:neh

1059 	struct ext4_extent_header *neh;  in ext4_ext_split()  local
1138 neh = ext_block_hdr(bh); in ext4_ext_split()
1139 neh->eh_entries = 0; in ext4_ext_split()
1140 neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode, 0)); in ext4_ext_split()
1141 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_split()
1142 neh->eh_depth = 0; in ext4_ext_split()
1143 neh->eh_generation = 0; in ext4_ext_split()
1159 ex = EXT_FIRST_EXTENT(neh); in ext4_ext_split()
1161 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1166 sizeof(struct ext4_extent) * le16_to_cpu(neh->eh_entries); in ext4_ext_split()
1168 ext4_extent_block_csum_set(inode, neh); in ext4_ext_split()
1217 neh = ext_block_hdr(bh); in ext4_ext_split()
1218 neh->eh_entries = cpu_to_le16(1); in ext4_ext_split()
1219 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_split()
1220 neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode, 0)); in ext4_ext_split()
1221 neh->eh_depth = cpu_to_le16(depth - i); in ext4_ext_split()
1222 neh->eh_generation = 0; in ext4_ext_split()
1223 fidx = EXT_FIRST_INDEX(neh); in ext4_ext_split()
1247 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1251 (sizeof(struct ext4_extent) * le16_to_cpu(neh->eh_entries)); in ext4_ext_split()
1254 ext4_extent_block_csum_set(inode, neh); in ext4_ext_split()
1314 struct ext4_extent_header *neh; in ext4_ext_grow_indepth() local
1353 neh = ext_block_hdr(bh); in ext4_ext_grow_indepth()
1357 neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode, 0)); in ext4_ext_grow_indepth()
1359 neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode, 0)); in ext4_ext_grow_indepth()
1360 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_grow_indepth()
1361 ext4_extent_block_csum_set(inode, neh); in ext4_ext_grow_indepth()
1371 neh = ext_inode_hdr(inode); in ext4_ext_grow_indepth()
1372 neh->eh_entries = cpu_to_le16(1); in ext4_ext_grow_indepth()
1373 ext4_idx_store_pblock(EXT_FIRST_INDEX(neh), newblock); in ext4_ext_grow_indepth()
1374 if (neh->eh_depth == 0) { in ext4_ext_grow_indepth()
1376 neh->eh_max = cpu_to_le16(ext4_ext_space_root_idx(inode, 0)); in ext4_ext_grow_indepth()
1377 EXT_FIRST_INDEX(neh)->ei_block = in ext4_ext_grow_indepth()
1378 EXT_FIRST_EXTENT(neh)->ee_block; in ext4_ext_grow_indepth()
1381 le16_to_cpu(neh->eh_entries), le16_to_cpu(neh->eh_max), in ext4_ext_grow_indepth()
1382 le32_to_cpu(EXT_FIRST_INDEX(neh)->ei_block), in ext4_ext_grow_indepth()
1383 ext4_idx_pblock(EXT_FIRST_INDEX(neh))); in ext4_ext_grow_indepth()
1385 le16_add_cpu(&neh->eh_depth, 1); in ext4_ext_grow_indepth()