Lines Matching refs:neh

1031 	struct ext4_extent_header *neh;  in ext4_ext_split()  local
1104 neh = ext_block_hdr(bh); in ext4_ext_split()
1105 neh->eh_entries = 0; in ext4_ext_split()
1106 neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode, 0)); in ext4_ext_split()
1107 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_split()
1108 neh->eh_depth = 0; in ext4_ext_split()
1124 ex = EXT_FIRST_EXTENT(neh); in ext4_ext_split()
1126 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1129 ext4_extent_block_csum_set(inode, neh); in ext4_ext_split()
1177 neh = ext_block_hdr(bh); in ext4_ext_split()
1178 neh->eh_entries = cpu_to_le16(1); in ext4_ext_split()
1179 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_split()
1180 neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode, 0)); in ext4_ext_split()
1181 neh->eh_depth = cpu_to_le16(depth - i); in ext4_ext_split()
1182 fidx = EXT_FIRST_INDEX(neh); in ext4_ext_split()
1206 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1208 ext4_extent_block_csum_set(inode, neh); in ext4_ext_split()
1268 struct ext4_extent_header *neh; in ext4_ext_grow_indepth() local
1303 neh = ext_block_hdr(bh); in ext4_ext_grow_indepth()
1307 neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode, 0)); in ext4_ext_grow_indepth()
1309 neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode, 0)); in ext4_ext_grow_indepth()
1310 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_grow_indepth()
1311 ext4_extent_block_csum_set(inode, neh); in ext4_ext_grow_indepth()
1320 neh = ext_inode_hdr(inode); in ext4_ext_grow_indepth()
1321 neh->eh_entries = cpu_to_le16(1); in ext4_ext_grow_indepth()
1322 ext4_idx_store_pblock(EXT_FIRST_INDEX(neh), newblock); in ext4_ext_grow_indepth()
1323 if (neh->eh_depth == 0) { in ext4_ext_grow_indepth()
1325 neh->eh_max = cpu_to_le16(ext4_ext_space_root_idx(inode, 0)); in ext4_ext_grow_indepth()
1326 EXT_FIRST_INDEX(neh)->ei_block = in ext4_ext_grow_indepth()
1327 EXT_FIRST_EXTENT(neh)->ee_block; in ext4_ext_grow_indepth()
1330 le16_to_cpu(neh->eh_entries), le16_to_cpu(neh->eh_max), in ext4_ext_grow_indepth()
1331 le32_to_cpu(EXT_FIRST_INDEX(neh)->ei_block), in ext4_ext_grow_indepth()
1332 ext4_idx_pblock(EXT_FIRST_INDEX(neh))); in ext4_ext_grow_indepth()
1334 le16_add_cpu(&neh->eh_depth, 1); in ext4_ext_grow_indepth()