Lines Matching refs:neh

845 	struct ext4_extent_header *neh;  in ext4_ext_split()  local
918 neh = ext_block_hdr(bh); in ext4_ext_split()
919 neh->eh_entries = 0; in ext4_ext_split()
920 neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode, 0)); in ext4_ext_split()
921 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_split()
922 neh->eh_depth = 0; in ext4_ext_split()
938 ex = EXT_FIRST_EXTENT(neh); in ext4_ext_split()
940 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
990 neh = ext_block_hdr(bh); in ext4_ext_split()
991 neh->eh_entries = cpu_to_le16(1); in ext4_ext_split()
992 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_split()
993 neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode, 0)); in ext4_ext_split()
994 neh->eh_depth = cpu_to_le16(depth - i); in ext4_ext_split()
995 fidx = EXT_FIRST_INDEX(neh); in ext4_ext_split()
1019 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1081 struct ext4_extent_header *neh; in ext4_ext_grow_indepth() local
1107 neh = ext_block_hdr(bh); in ext4_ext_grow_indepth()
1111 neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode, 0)); in ext4_ext_grow_indepth()
1113 neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode, 0)); in ext4_ext_grow_indepth()
1114 neh->eh_magic = EXT4_EXT_MAGIC; in ext4_ext_grow_indepth()
1123 neh = ext_inode_hdr(inode); in ext4_ext_grow_indepth()
1124 neh->eh_entries = cpu_to_le16(1); in ext4_ext_grow_indepth()
1125 ext4_idx_store_pblock(EXT_FIRST_INDEX(neh), newblock); in ext4_ext_grow_indepth()
1126 if (neh->eh_depth == 0) { in ext4_ext_grow_indepth()
1128 neh->eh_max = cpu_to_le16(ext4_ext_space_root_idx(inode, 0)); in ext4_ext_grow_indepth()
1129 EXT_FIRST_INDEX(neh)->ei_block = in ext4_ext_grow_indepth()
1130 EXT_FIRST_EXTENT(neh)->ee_block; in ext4_ext_grow_indepth()
1133 le16_to_cpu(neh->eh_entries), le16_to_cpu(neh->eh_max), in ext4_ext_grow_indepth()
1134 le32_to_cpu(EXT_FIRST_INDEX(neh)->ei_block), in ext4_ext_grow_indepth()
1135 ext4_idx_pblock(EXT_FIRST_INDEX(neh))); in ext4_ext_grow_indepth()
1137 neh->eh_depth = cpu_to_le16(le16_to_cpu(neh->eh_depth) + 1); in ext4_ext_grow_indepth()