Lines Matching refs:hinfo

273 				 struct dx_hash_info *hinfo,
277 unsigned blocksize, struct dx_hash_info *hinfo,
615 struct dx_hash_info *hinfo, in dx_show_leaf() argument
621 struct dx_hash_info h = *hinfo; in dx_show_leaf()
705 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument
724 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries()
725 dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) in dx_show_entries()
751 struct dx_hash_info *hinfo, struct dx_frame *frame_in) in dx_probe() argument
774 hinfo = &fname->hinfo; in dx_probe()
775 hinfo->hash_version = root->info.hash_version; in dx_probe()
776 if (hinfo->hash_version <= DX_HASH_TEA) in dx_probe()
777 hinfo->hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in dx_probe()
778 hinfo->seed = EXT4_SB(dir->i_sb)->s_hash_seed; in dx_probe()
780 ext4fs_dirhash(dir, fname_name(fname), fname_len(fname), hinfo); in dx_probe()
781 hash = hinfo->hash; in dx_probe()
987 struct dx_hash_info *hinfo, in htree_dirblock_to_tree() argument
1029 ext4fs_dirhash(dir, de->name, de->name_len, hinfo); in htree_dirblock_to_tree()
1030 if ((hinfo->hash < start_hash) || in htree_dirblock_to_tree()
1031 ((hinfo->hash == start_hash) && in htree_dirblock_to_tree()
1032 (hinfo->minor_hash < start_minor_hash))) in htree_dirblock_to_tree()
1040 hinfo->hash, hinfo->minor_hash, de, in htree_dirblock_to_tree()
1048 err = fscrypt_fname_disk_to_usr(dir, hinfo->hash, in htree_dirblock_to_tree()
1049 hinfo->minor_hash, &de_name, in htree_dirblock_to_tree()
1056 hinfo->hash, hinfo->minor_hash, de, in htree_dirblock_to_tree()
1086 struct dx_hash_info hinfo; in ext4_htree_fill_tree() local
1100 hinfo.hash_version = EXT4_SB(dir->i_sb)->s_def_hash_version; in ext4_htree_fill_tree()
1101 if (hinfo.hash_version <= DX_HASH_TEA) in ext4_htree_fill_tree()
1102 hinfo.hash_version += in ext4_htree_fill_tree()
1104 hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in ext4_htree_fill_tree()
1108 &hinfo, start_hash, in ext4_htree_fill_tree()
1116 count = htree_dirblock_to_tree(dir_file, dir, 0, &hinfo, in ext4_htree_fill_tree()
1121 hinfo.hash = start_hash; in ext4_htree_fill_tree()
1122 hinfo.minor_hash = 0; in ext4_htree_fill_tree()
1123 frame = dx_probe(NULL, dir, &hinfo, frames); in ext4_htree_fill_tree()
1157 ret = htree_dirblock_to_tree(dir_file, dir, block, &hinfo, in ext4_htree_fill_tree()
1209 unsigned blocksize, struct dx_hash_info *hinfo, in dx_make_map() argument
1214 struct dx_hash_info h = *hinfo; in dx_make_map()
1656 retval = ext4_htree_next_block(dir, fname->hinfo.hash, frame, in ext4_dx_find_entry()
1812 struct dx_hash_info *hinfo) in do_split() argument
1851 blocksize, hinfo, map); in do_split()
1887 dxtrace(dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) data1, in do_split()
1889 dxtrace(dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) data2, in do_split()
1893 if (hinfo->hash >= hash2) { in do_split()
2111 fname->hinfo.hash_version = root->info.hash_version; in make_indexed_dir()
2112 if (fname->hinfo.hash_version <= DX_HASH_TEA) in make_indexed_dir()
2113 fname->hinfo.hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in make_indexed_dir()
2114 fname->hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in make_indexed_dir()
2115 ext4fs_dirhash(dir, fname_name(fname), fname_len(fname), &fname->hinfo); in make_indexed_dir()
2130 de = do_split(handle,dir, &bh2, frame, &fname->hinfo); in make_indexed_dir()
2415 de = do_split(handle, dir, &bh, frame, &fname->hinfo); in ext4_dx_add_entry()