/fs/ext3/ |
D | hash.c | 137 int ext3fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) in ext3fs_dirhash() argument 154 if (hinfo->seed) { in ext3fs_dirhash() 156 if (hinfo->seed[i]) in ext3fs_dirhash() 160 memcpy(buf, hinfo->seed, sizeof(buf)); in ext3fs_dirhash() 163 switch (hinfo->hash_version) { in ext3fs_dirhash() 197 hinfo->hash = 0; in ext3fs_dirhash() 203 hinfo->hash = hash; in ext3fs_dirhash() 204 hinfo->minor_hash = minor_hash; in ext3fs_dirhash()
|
D | namei.c | 147 struct dx_hash_info *hinfo, 152 struct dx_hash_info *hinfo, struct dx_map_entry map[]); 258 static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext3_dir_entry_2 *de, in dx_show_leaf() argument 263 struct dx_hash_info h = *hinfo; in dx_show_leaf() 288 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument 305 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries() 306 dx_show_leaf(hinfo, (struct ext3_dir_entry_2 *) bh->b_data, blocksize, 0); in dx_show_entries() 330 struct dx_hash_info *hinfo, struct dx_frame *frame_in, int *err) in dx_probe() argument 355 hinfo->hash_version = root->info.hash_version; in dx_probe() 356 if (hinfo->hash_version <= DX_HASH_TEA) in dx_probe() [all …]
|
D | ext3.h | 1028 dx_hash_info *hinfo);
|
/fs/ext4/ |
D | hash.c | 139 int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) in ext4fs_dirhash() argument 156 if (hinfo->seed) { in ext4fs_dirhash() 158 if (hinfo->seed[i]) { in ext4fs_dirhash() 159 memcpy(buf, hinfo->seed, sizeof(buf)); in ext4fs_dirhash() 165 switch (hinfo->hash_version) { in ext4fs_dirhash() 199 hinfo->hash = 0; in ext4fs_dirhash() 205 hinfo->hash = hash; in ext4fs_dirhash() 206 hinfo->minor_hash = minor_hash; in ext4fs_dirhash()
|
D | crypto_fname.c | 313 struct dx_hash_info *hinfo, in _ext4_fname_disk_to_usr() argument 341 if (hinfo) { in _ext4_fname_disk_to_usr() 342 memcpy(buf, &hinfo->hash, 4); in _ext4_fname_disk_to_usr() 343 memcpy(buf+4, &hinfo->minor_hash, 4); in _ext4_fname_disk_to_usr() 354 struct dx_hash_info *hinfo, in ext4_fname_disk_to_usr() argument 361 return _ext4_fname_disk_to_usr(inode, hinfo, &iname, oname); in ext4_fname_disk_to_usr() 451 memcpy(&fname->hinfo.hash, fname->crypto_buf.name, 4); in ext4_fname_setup_filename() 452 memcpy(&fname->hinfo.minor_hash, fname->crypto_buf.name + 4, 4); in ext4_fname_setup_filename()
|
D | namei.c | 254 struct dx_hash_info *hinfo, 258 unsigned blocksize, struct dx_hash_info *hinfo, 591 struct dx_hash_info *hinfo, in dx_show_leaf() argument 597 struct dx_hash_info h = *hinfo; in dx_show_leaf() 679 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument 698 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries() 699 dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) in dx_show_entries() 725 struct dx_hash_info *hinfo, struct dx_frame *frame_in) in dx_probe() argument 747 hinfo = &fname->hinfo; in dx_probe() 748 hinfo->hash_version = root->info.hash_version; in dx_probe() [all …]
|
D | ialloc.c | 429 struct dx_hash_info hinfo; in find_group_orlov() local 453 hinfo.hash_version = DX_HASH_HALF_MD4; in find_group_orlov() 454 hinfo.seed = sbi->s_hash_seed; in find_group_orlov() 455 ext4fs_dirhash(qstr->name, qstr->len, &hinfo); in find_group_orlov() 456 grp = hinfo.hash; in find_group_orlov()
|
D | inline.c | 1329 struct dx_hash_info *hinfo, in htree_inlinedir_to_tree() argument 1407 ext4fs_dirhash(de->name, de->name_len, hinfo); in htree_inlinedir_to_tree() 1408 if ((hinfo->hash < start_hash) || in htree_inlinedir_to_tree() 1409 ((hinfo->hash == start_hash) && in htree_inlinedir_to_tree() 1410 (hinfo->minor_hash < start_minor_hash))) in htree_inlinedir_to_tree() 1416 err = ext4_htree_store_dirent(dir_file, hinfo->hash, in htree_inlinedir_to_tree() 1417 hinfo->minor_hash, de, &tmp_str); in htree_inlinedir_to_tree()
|
D | ext4.h | 1859 struct dx_hash_info hinfo; member 2121 struct dx_hash_info *hinfo, 2125 struct dx_hash_info *hinfo, 2236 dx_hash_info *hinfo); 2829 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() 866 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_hash_idx() argument 868 return __ocfs2_dx_dir_hash_idx(osb, hinfo->minor_hash); in ocfs2_dx_dir_hash_idx() 873 struct ocfs2_dx_hinfo *hinfo, in ocfs2_dx_dir_lookup() argument 881 u32 name_hash = hinfo->major_hash; in ocfs2_dx_dir_lookup() 906 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup() 930 struct ocfs2_dx_hinfo *hinfo = &res->dl_hinfo; in ocfs2_dx_dir_search() local 943 ret = ocfs2_dx_dir_lookup(dir, dr_el, hinfo, NULL, &phys); in ocfs2_dx_dir_search() [all …]
|