Searched refs:hinfo (Results 1 – 8 of 8) sorted by relevance
/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() 162 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 | namei.c | 160 struct dx_hash_info *hinfo, 165 struct dx_hash_info *hinfo, struct dx_map_entry map[]); 273 static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext4_dir_entry_2 *de, in dx_show_leaf() argument 278 struct dx_hash_info h = *hinfo; in dx_show_leaf() 303 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument 321 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries() 322 dx_show_leaf(hinfo, (struct ext4_dir_entry_2 *) bh->b_data, blocksize, 0); in dx_show_entries() 347 struct dx_hash_info *hinfo, struct dx_frame *frame_in, int *err) in dx_probe() argument 369 hinfo->hash_version = root->info.hash_version; in dx_probe() 370 if (hinfo->hash_version <= DX_HASH_TEA) in dx_probe() [all …]
|
D | ialloc.c | 381 struct dx_hash_info hinfo; in find_group_orlov() local 405 hinfo.hash_version = DX_HASH_HALF_MD4; in find_group_orlov() 406 hinfo.seed = sbi->s_hash_seed; in find_group_orlov() 407 ext4fs_dirhash(qstr->name, qstr->len, &hinfo); in find_group_orlov() 408 grp = hinfo.hash; in find_group_orlov()
|
D | ext4.h | 1847 dx_hash_info *hinfo);
|
/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 | 149 struct dx_hash_info *hinfo, 154 struct dx_hash_info *hinfo, struct dx_map_entry map[]); 260 static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext3_dir_entry_2 *de, in dx_show_leaf() argument 265 struct dx_hash_info h = *hinfo; in dx_show_leaf() 290 struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, in dx_show_entries() argument 307 dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): in dx_show_entries() 308 dx_show_leaf(hinfo, (struct ext3_dir_entry_2 *) bh->b_data, blocksize, 0); in dx_show_entries() 332 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 | 1022 dx_hash_info *hinfo);
|
/fs/ocfs2/ |
D | dir.c | 272 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_name_hash() argument 309 hinfo->major_hash = buf[0]; in ocfs2_dx_dir_name_hash() 310 hinfo->minor_hash = buf[1]; in ocfs2_dx_dir_name_hash() 867 struct ocfs2_dx_hinfo *hinfo) in ocfs2_dx_dir_hash_idx() argument 869 return __ocfs2_dx_dir_hash_idx(osb, hinfo->minor_hash); in ocfs2_dx_dir_hash_idx() 874 struct ocfs2_dx_hinfo *hinfo, in ocfs2_dx_dir_lookup() argument 882 u32 name_hash = hinfo->major_hash; in ocfs2_dx_dir_lookup() 907 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); in ocfs2_dx_dir_lookup() 931 struct ocfs2_dx_hinfo *hinfo = &res->dl_hinfo; in ocfs2_dx_dir_search() local 944 ret = ocfs2_dx_dir_lookup(dir, dr_el, hinfo, NULL, &phys); in ocfs2_dx_dir_search() [all …]
|