Lines Matching refs:hinfo
305 struct dx_hash_info *hinfo,
309 struct dx_hash_info *hinfo,
651 struct dx_hash_info *hinfo, in dx_show_leaf() argument
657 struct dx_hash_info h = *hinfo; in dx_show_leaf()
737 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument
756 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries()
757 dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) in dx_show_entries()
806 struct dx_hash_info *hinfo, struct dx_frame *frame_in) in dx_probe() argument
845 hinfo = &fname->hinfo; in dx_probe()
846 hinfo->hash_version = root->info.hash_version; in dx_probe()
847 if (hinfo->hash_version <= DX_HASH_TEA) in dx_probe()
848 hinfo->hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in dx_probe()
849 hinfo->seed = EXT4_SB(dir->i_sb)->s_hash_seed; in dx_probe()
853 ext4fs_dirhash(dir, fname_name(fname), fname_len(fname), hinfo); in dx_probe()
854 hash = hinfo->hash; in dx_probe()
1061 struct dx_hash_info *hinfo, in htree_dirblock_to_tree() argument
1107 hinfo->hash = EXT4_DIRENT_HASH(de); in htree_dirblock_to_tree()
1108 hinfo->minor_hash = EXT4_DIRENT_MINOR_HASH(de); in htree_dirblock_to_tree()
1110 hinfo->hash = 0; in htree_dirblock_to_tree()
1111 hinfo->minor_hash = 0; in htree_dirblock_to_tree()
1114 ext4fs_dirhash(dir, de->name, de->name_len, hinfo); in htree_dirblock_to_tree()
1116 if ((hinfo->hash < start_hash) || in htree_dirblock_to_tree()
1117 ((hinfo->hash == start_hash) && in htree_dirblock_to_tree()
1118 (hinfo->minor_hash < start_minor_hash))) in htree_dirblock_to_tree()
1126 hinfo->hash, hinfo->minor_hash, de, in htree_dirblock_to_tree()
1134 err = fscrypt_fname_disk_to_usr(dir, hinfo->hash, in htree_dirblock_to_tree()
1135 hinfo->minor_hash, &de_name, in htree_dirblock_to_tree()
1142 hinfo->hash, hinfo->minor_hash, de, in htree_dirblock_to_tree()
1170 struct dx_hash_info hinfo; in ext4_htree_fill_tree() local
1185 hinfo.hash_version = DX_HASH_SIPHASH; in ext4_htree_fill_tree()
1187 hinfo.hash_version = in ext4_htree_fill_tree()
1189 if (hinfo.hash_version <= DX_HASH_TEA) in ext4_htree_fill_tree()
1190 hinfo.hash_version += in ext4_htree_fill_tree()
1192 hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in ext4_htree_fill_tree()
1196 &hinfo, start_hash, in ext4_htree_fill_tree()
1204 count = htree_dirblock_to_tree(dir_file, dir, 0, &hinfo, in ext4_htree_fill_tree()
1209 hinfo.hash = start_hash; in ext4_htree_fill_tree()
1210 hinfo.minor_hash = 0; in ext4_htree_fill_tree()
1211 frame = dx_probe(NULL, dir, &hinfo, frames); in ext4_htree_fill_tree()
1245 ret = htree_dirblock_to_tree(dir_file, dir, block, &hinfo, in ext4_htree_fill_tree()
1297 struct dx_hash_info *hinfo, in dx_make_map() argument
1304 struct dx_hash_info h = *hinfo; in dx_make_map()
1428 struct dx_hash_info *hinfo = &name->hinfo; in ext4_fname_setup_ci_filename() local
1452 hinfo->hash_version = DX_HASH_SIPHASH; in ext4_fname_setup_ci_filename()
1453 hinfo->seed = NULL; in ext4_fname_setup_ci_filename()
1455 ext4fs_dirhash(dir, cf_name->name, cf_name->len, hinfo); in ext4_fname_setup_ci_filename()
1457 ext4fs_dirhash(dir, iname->name, iname->len, hinfo); in ext4_fname_setup_ci_filename()
1489 if (fname->hinfo.hash != EXT4_DIRENT_HASH(de) || in ext4_match()
1490 fname->hinfo.minor_hash != in ext4_match()
1791 retval = ext4_htree_next_block(dir, fname->hinfo.hash, frame, in ext4_dx_find_entry()
1956 struct dx_hash_info *hinfo) in do_split() argument
1997 count = dx_make_map(dir, *bh, hinfo, map); in do_split()
2047 dxtrace(dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) data1, in do_split()
2049 dxtrace(dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) data2, in do_split()
2053 if (hinfo->hash >= hash2) { in do_split()
2134 struct dx_hash_info *hinfo = &fname->hinfo; in ext4_insert_dentry() local
2136 EXT4_DIRENT_HASHES(de)->hash = cpu_to_le32(hinfo->hash); in ext4_insert_dentry()
2138 cpu_to_le32(hinfo->minor_hash); in ext4_insert_dentry()
2295 fname->hinfo.hash_version = root->info.hash_version; in make_indexed_dir()
2296 if (fname->hinfo.hash_version <= DX_HASH_TEA) in make_indexed_dir()
2297 fname->hinfo.hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in make_indexed_dir()
2298 fname->hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in make_indexed_dir()
2303 fname_len(fname), &fname->hinfo); in make_indexed_dir()
2318 de = do_split(handle,dir, &bh2, frame, &fname->hinfo); in make_indexed_dir()
2614 de = do_split(handle, dir, &bh, frame, &fname->hinfo); in ext4_dx_add_entry()