Lines Matching refs:hinfo

303 				 struct dx_hash_info *hinfo,
307 unsigned blocksize, struct dx_hash_info *hinfo,
649 struct dx_hash_info *hinfo, in dx_show_leaf() argument
655 struct dx_hash_info h = *hinfo; in dx_show_leaf()
735 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument
754 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries()
755 dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) in dx_show_entries()
781 struct dx_hash_info *hinfo, struct dx_frame *frame_in) in dx_probe() argument
820 hinfo = &fname->hinfo; in dx_probe()
821 hinfo->hash_version = root->info.hash_version; in dx_probe()
822 if (hinfo->hash_version <= DX_HASH_TEA) in dx_probe()
823 hinfo->hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in dx_probe()
824 hinfo->seed = EXT4_SB(dir->i_sb)->s_hash_seed; in dx_probe()
828 ext4fs_dirhash(dir, fname_name(fname), fname_len(fname), hinfo); in dx_probe()
829 hash = hinfo->hash; in dx_probe()
1049 struct dx_hash_info *hinfo, in htree_dirblock_to_tree() argument
1095 hinfo->hash = EXT4_DIRENT_HASH(de); in htree_dirblock_to_tree()
1096 hinfo->minor_hash = EXT4_DIRENT_MINOR_HASH(de); in htree_dirblock_to_tree()
1098 hinfo->hash = 0; in htree_dirblock_to_tree()
1099 hinfo->minor_hash = 0; in htree_dirblock_to_tree()
1102 ext4fs_dirhash(dir, de->name, de->name_len, hinfo); in htree_dirblock_to_tree()
1104 if ((hinfo->hash < start_hash) || in htree_dirblock_to_tree()
1105 ((hinfo->hash == start_hash) && in htree_dirblock_to_tree()
1106 (hinfo->minor_hash < start_minor_hash))) in htree_dirblock_to_tree()
1114 hinfo->hash, hinfo->minor_hash, de, in htree_dirblock_to_tree()
1122 err = fscrypt_fname_disk_to_usr(dir, hinfo->hash, in htree_dirblock_to_tree()
1123 hinfo->minor_hash, &de_name, in htree_dirblock_to_tree()
1130 hinfo->hash, hinfo->minor_hash, de, in htree_dirblock_to_tree()
1158 struct dx_hash_info hinfo; in ext4_htree_fill_tree() local
1173 hinfo.hash_version = DX_HASH_SIPHASH; in ext4_htree_fill_tree()
1175 hinfo.hash_version = in ext4_htree_fill_tree()
1177 if (hinfo.hash_version <= DX_HASH_TEA) in ext4_htree_fill_tree()
1178 hinfo.hash_version += in ext4_htree_fill_tree()
1180 hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in ext4_htree_fill_tree()
1184 &hinfo, start_hash, in ext4_htree_fill_tree()
1192 count = htree_dirblock_to_tree(dir_file, dir, 0, &hinfo, in ext4_htree_fill_tree()
1197 hinfo.hash = start_hash; in ext4_htree_fill_tree()
1198 hinfo.minor_hash = 0; in ext4_htree_fill_tree()
1199 frame = dx_probe(NULL, dir, &hinfo, frames); in ext4_htree_fill_tree()
1233 ret = htree_dirblock_to_tree(dir_file, dir, block, &hinfo, in ext4_htree_fill_tree()
1286 unsigned blocksize, struct dx_hash_info *hinfo, in dx_make_map() argument
1291 struct dx_hash_info h = *hinfo; in dx_make_map()
1410 struct dx_hash_info *hinfo = &name->hinfo; in ext4_fname_setup_ci_filename() local
1434 hinfo->hash_version = DX_HASH_SIPHASH; in ext4_fname_setup_ci_filename()
1435 hinfo->seed = NULL; in ext4_fname_setup_ci_filename()
1437 ext4fs_dirhash(dir, cf_name->name, cf_name->len, hinfo); in ext4_fname_setup_ci_filename()
1439 ext4fs_dirhash(dir, iname->name, iname->len, hinfo); in ext4_fname_setup_ci_filename()
1471 if (fname->hinfo.hash != EXT4_DIRENT_HASH(de) || in ext4_match()
1472 fname->hinfo.minor_hash != in ext4_match()
1781 retval = ext4_htree_next_block(dir, fname->hinfo.hash, frame, in ext4_dx_find_entry()
1940 struct dx_hash_info *hinfo, ext4_lblk_t *newblock) in do_split() argument
1979 blocksize, 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()
2113 struct dx_hash_info *hinfo = &fname->hinfo; in ext4_insert_dentry() local
2115 EXT4_DIRENT_HASHES(de)->hash = cpu_to_le32(hinfo->hash); in ext4_insert_dentry()
2117 cpu_to_le32(hinfo->minor_hash); in ext4_insert_dentry()
2272 fname->hinfo.hash_version = root->info.hash_version; in make_indexed_dir()
2273 if (fname->hinfo.hash_version <= DX_HASH_TEA) in make_indexed_dir()
2274 fname->hinfo.hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in make_indexed_dir()
2275 fname->hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in make_indexed_dir()
2280 fname_len(fname), &fname->hinfo); in make_indexed_dir()
2295 de = do_split(handle, dir, &bh2, frame, &fname->hinfo, &block); in make_indexed_dir()
2591 de = do_split(handle, dir, &bh, frame, &fname->hinfo, &lblk); in ext4_dx_add_entry()