Lines Matching refs:hinfo
289 struct dx_hash_info *hinfo,
293 struct dx_hash_info *hinfo,
637 struct dx_hash_info *hinfo, in dx_show_leaf() argument
643 struct dx_hash_info h = *hinfo; in dx_show_leaf()
730 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument
749 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries()
750 dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) in dx_show_entries()
776 struct dx_hash_info *hinfo, struct dx_frame *frame_in) in dx_probe() argument
815 hinfo = &fname->hinfo; in dx_probe()
816 hinfo->hash_version = root->info.hash_version; in dx_probe()
817 if (hinfo->hash_version <= DX_HASH_TEA) in dx_probe()
818 hinfo->hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in dx_probe()
819 hinfo->seed = EXT4_SB(dir->i_sb)->s_hash_seed; in dx_probe()
823 ext4fs_dirhash(dir, fname_name(fname), fname_len(fname), hinfo); in dx_probe()
824 hash = hinfo->hash; in dx_probe()
1044 struct dx_hash_info *hinfo, in htree_dirblock_to_tree() argument
1091 hinfo->hash = EXT4_DIRENT_HASH(de); in htree_dirblock_to_tree()
1092 hinfo->minor_hash = EXT4_DIRENT_MINOR_HASH(de); in htree_dirblock_to_tree()
1094 hinfo->hash = 0; in htree_dirblock_to_tree()
1095 hinfo->minor_hash = 0; in htree_dirblock_to_tree()
1098 ext4fs_dirhash(dir, de->name, de->name_len, hinfo); in htree_dirblock_to_tree()
1100 if ((hinfo->hash < start_hash) || in htree_dirblock_to_tree()
1101 ((hinfo->hash == start_hash) && in htree_dirblock_to_tree()
1102 (hinfo->minor_hash < start_minor_hash))) in htree_dirblock_to_tree()
1110 hinfo->hash, hinfo->minor_hash, de, in htree_dirblock_to_tree()
1118 err = fscrypt_fname_disk_to_usr(dir, hinfo->hash, in htree_dirblock_to_tree()
1119 hinfo->minor_hash, &de_name, in htree_dirblock_to_tree()
1126 hinfo->hash, hinfo->minor_hash, de, in htree_dirblock_to_tree()
1156 struct dx_hash_info hinfo; in ext4_htree_fill_tree() local
1171 hinfo.hash_version = DX_HASH_SIPHASH; in ext4_htree_fill_tree()
1173 hinfo.hash_version = in ext4_htree_fill_tree()
1175 if (hinfo.hash_version <= DX_HASH_TEA) in ext4_htree_fill_tree()
1176 hinfo.hash_version += in ext4_htree_fill_tree()
1178 hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in ext4_htree_fill_tree()
1182 &hinfo, start_hash, in ext4_htree_fill_tree()
1190 count = htree_dirblock_to_tree(dir_file, dir, 0, &hinfo, in ext4_htree_fill_tree()
1195 hinfo.hash = start_hash; in ext4_htree_fill_tree()
1196 hinfo.minor_hash = 0; in ext4_htree_fill_tree()
1197 frame = dx_probe(NULL, dir, &hinfo, frames); in ext4_htree_fill_tree()
1231 ret = htree_dirblock_to_tree(dir_file, dir, block, &hinfo, in ext4_htree_fill_tree()
1283 struct dx_hash_info *hinfo, in dx_make_map() argument
1290 struct dx_hash_info h = *hinfo; in dx_make_map()
1416 struct dx_hash_info *hinfo = &name->hinfo; in ext4_fname_setup_ci_filename() local
1440 hinfo->hash_version = DX_HASH_SIPHASH; in ext4_fname_setup_ci_filename()
1441 hinfo->seed = NULL; in ext4_fname_setup_ci_filename()
1443 ext4fs_dirhash(dir, cf_name->name, cf_name->len, hinfo); in ext4_fname_setup_ci_filename()
1445 ext4fs_dirhash(dir, iname->name, iname->len, hinfo); in ext4_fname_setup_ci_filename()
1477 if (fname->hinfo.hash != EXT4_DIRENT_HASH(de) || in ext4_match()
1478 fname->hinfo.minor_hash != in ext4_match()
1777 retval = ext4_htree_next_block(dir, fname->hinfo.hash, frame, in ext4_dx_find_entry()
1936 struct dx_hash_info *hinfo) in do_split() argument
1975 count = dx_make_map(dir, *bh, hinfo, map); in do_split()
2025 dxtrace(dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) data1, in do_split()
2027 dxtrace(dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) data2, in do_split()
2031 if (hinfo->hash >= hash2) { in do_split()
2112 struct dx_hash_info *hinfo = &fname->hinfo; in ext4_insert_dentry() local
2114 EXT4_DIRENT_HASHES(de)->hash = cpu_to_le32(hinfo->hash); in ext4_insert_dentry()
2116 cpu_to_le32(hinfo->minor_hash); in ext4_insert_dentry()
2270 fname->hinfo.hash_version = root->info.hash_version; in make_indexed_dir()
2271 if (fname->hinfo.hash_version <= DX_HASH_TEA) in make_indexed_dir()
2272 fname->hinfo.hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in make_indexed_dir()
2273 fname->hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in make_indexed_dir()
2278 fname_len(fname), &fname->hinfo); in make_indexed_dir()
2293 de = do_split(handle,dir, &bh2, frame, &fname->hinfo); in make_indexed_dir()
2585 de = do_split(handle, dir, &bh, frame, &fname->hinfo); in ext4_dx_add_entry()