Searched refs:hinfo (Results 1 – 7 of 7) sorted by relevance
/fs/ext4/ |
D | hash.c | 138 int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) in ext4fs_dirhash() argument 155 if (hinfo->seed) { in ext4fs_dirhash() 157 if (hinfo->seed[i]) { in ext4fs_dirhash() 158 memcpy(buf, hinfo->seed, sizeof(buf)); in ext4fs_dirhash() 164 switch (hinfo->hash_version) { in ext4fs_dirhash() 198 hinfo->hash = 0; in ext4fs_dirhash() 204 hinfo->hash = hash; in ext4fs_dirhash() 205 hinfo->minor_hash = minor_hash; in ext4fs_dirhash()
|
D | crypto_fname.c | 308 struct dx_hash_info *hinfo, in _ext4_fname_disk_to_usr() argument 336 if (hinfo) { in _ext4_fname_disk_to_usr() 337 memcpy(buf, &hinfo->hash, 4); in _ext4_fname_disk_to_usr() 338 memcpy(buf+4, &hinfo->minor_hash, 4); in _ext4_fname_disk_to_usr() 349 struct dx_hash_info *hinfo, in ext4_fname_disk_to_usr() argument 356 return _ext4_fname_disk_to_usr(inode, hinfo, &iname, oname); in ext4_fname_disk_to_usr() 446 memcpy(&fname->hinfo.hash, fname->crypto_buf.name, 4); in ext4_fname_setup_filename() 447 memcpy(&fname->hinfo.minor_hash, fname->crypto_buf.name + 4, 4); in ext4_fname_setup_filename()
|
D | namei.c | 257 struct dx_hash_info *hinfo, 261 unsigned blocksize, struct dx_hash_info *hinfo, 597 struct dx_hash_info *hinfo, in dx_show_leaf() argument 603 struct dx_hash_info h = *hinfo; in dx_show_leaf() 685 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument 704 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries() 705 dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) in dx_show_entries() 731 struct dx_hash_info *hinfo, struct dx_frame *frame_in) in dx_probe() argument 753 hinfo = &fname->hinfo; in dx_probe() 754 hinfo->hash_version = root->info.hash_version; in dx_probe() [all …]
|
D | ialloc.c | 441 struct dx_hash_info hinfo; in find_group_orlov() local 464 hinfo.hash_version = DX_HASH_HALF_MD4; in find_group_orlov() 465 hinfo.seed = sbi->s_hash_seed; in find_group_orlov() 466 ext4fs_dirhash(qstr->name, qstr->len, &hinfo); in find_group_orlov() 467 grp = hinfo.hash; in find_group_orlov()
|
D | inline.c | 1351 struct dx_hash_info *hinfo, in htree_inlinedir_to_tree() argument 1429 ext4fs_dirhash(de->name, de->name_len, hinfo); in htree_inlinedir_to_tree() 1430 if ((hinfo->hash < start_hash) || in htree_inlinedir_to_tree() 1431 ((hinfo->hash == start_hash) && in htree_inlinedir_to_tree() 1432 (hinfo->minor_hash < start_minor_hash))) in htree_inlinedir_to_tree() 1438 err = ext4_htree_store_dirent(dir_file, hinfo->hash, in htree_inlinedir_to_tree() 1439 hinfo->minor_hash, de, &tmp_str); in htree_inlinedir_to_tree()
|
D | ext4.h | 2051 struct dx_hash_info hinfo; member 2312 struct dx_hash_info *hinfo, 2316 struct dx_hash_info *hinfo, 2429 dx_hash_info *hinfo); 3058 struct dx_hash_info *hinfo,
|
/fs/ocfs2/ |
D | dir.c | 271 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_name_hash() argument 308 hinfo->major_hash = buf[0]; in ocfs2_dx_dir_name_hash() 309 hinfo->minor_hash = buf[1]; in ocfs2_dx_dir_name_hash() 856 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_hash_idx() argument 858 return __ocfs2_dx_dir_hash_idx(osb, hinfo->minor_hash); in ocfs2_dx_dir_hash_idx() 863 struct ocfs2_dx_hinfo *hinfo, in ocfs2_dx_dir_lookup() argument 871 u32 name_hash = hinfo->major_hash; in ocfs2_dx_dir_lookup() 896 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup() 920 struct ocfs2_dx_hinfo *hinfo = &res->dl_hinfo; in ocfs2_dx_dir_search() local 933 ret = ocfs2_dx_dir_lookup(dir, dr_el, hinfo, NULL, &phys); in ocfs2_dx_dir_search() [all …]
|