/Linux-v4.19/fs/xfs/ |
D | xfs_attr_list.c | 47 (!((cursor)->initted) && !((cursor)->hashval) && \ 160 if (sbp->hash == cursor->hashval) { in xfs_attr_shortform_list() 165 } else if (sbp->hash > cursor->hashval) { in xfs_attr_shortform_list() 178 if (cursor->hashval != sbp->hash) { in xfs_attr_shortform_list() 179 cursor->hashval = sbp->hash; in xfs_attr_shortform_list() 253 if (cursor->hashval <= be32_to_cpu(btree->hashval)) { in xfs_attr_node_list_lookup() 327 if (cursor->hashval > be32_to_cpu( in xfs_attr_node_list() 328 entries[leafhdr.count - 1].hashval)) { in xfs_attr_node_list() 332 } else if (cursor->hashval <= be32_to_cpu( in xfs_attr_node_list() 333 entries[0].hashval)) { in xfs_attr_node_list() [all …]
|
D | xfs_attr.h | 92 __u32 hashval; /* hash value of next entry to add */ member
|
D | xfs_trace.h | 40 __field(u32, hashval) 53 __entry->hashval = ctx->cursor->hashval; 66 __entry->hashval, 164 __field(u32, hashval) 179 __entry->hashval = ctx->cursor->hashval; 187 __entry->bt_hashval = be32_to_cpu(btree->hashval); 195 __entry->hashval, 1656 __field(xfs_dahash_t, hashval) 1666 __entry->hashval = args->hashval; 1677 __entry->hashval, [all …]
|
/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_da_btree.c | 624 btree[0].hashval = cpu_to_be32(blk1->hashval); in xfs_da3_root_split() 626 btree[1].hashval = cpu_to_be32(blk2->hashval); in xfs_da3_root_split() 783 ((be32_to_cpu(btree2[0].hashval) < be32_to_cpu(btree1[0].hashval)) || in xfs_da3_node_rebalance() 784 (be32_to_cpu(btree2[nodehdr2.count - 1].hashval) < in xfs_da3_node_rebalance() 785 be32_to_cpu(btree1[nodehdr1.count - 1].hashval)))) { in xfs_da3_node_rebalance() 876 blk1->hashval = be32_to_cpu(btree1[nodehdr1.count - 1].hashval); in xfs_da3_node_rebalance() 877 blk2->hashval = be32_to_cpu(btree2[nodehdr2.count - 1].hashval); in xfs_da3_node_rebalance() 923 btree[oldblk->index].hashval = cpu_to_be32(newblk->hashval); in xfs_da3_node_add() 937 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_add() 1268 return be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_lasthash() [all …]
|
D | xfs_dir2_block.c | 428 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname() 430 if (hash < args->hashval) in xfs_dir2_block_addname() 435 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname() 529 blp[mid].hashval = cpu_to_be32(args->hashval); in xfs_dir2_block_addname() 689 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int() 691 if (hash < args->hashval) in xfs_dir2_block_lookup_int() 704 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int() 733 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int() 889 return be32_to_cpu(la->hashval) < be32_to_cpu(lb->hashval) ? -1 : in xfs_dir2_block_sort() 890 (be32_to_cpu(la->hashval) > be32_to_cpu(lb->hashval) ? 1 : 0); in xfs_dir2_block_sort() [all …]
|
D | xfs_attr_leaf.c | 837 nargs.hashval = xfs_da_hashname(sfe->nameval, in xfs_attr_shortform_to_leaf() 1044 nargs.hashval = be32_to_cpu(entry->hashval); in xfs_attr3_leaf_to_shortform() 1113 btree[0].hashval = entries[icleafhdr.count - 1].hashval; in xfs_attr3_leaf_to_node() 1235 oldblk->hashval = xfs_attr_leaf_lasthash(oldblk->bp, NULL); in xfs_attr3_leaf_split() 1236 newblk->hashval = xfs_attr_leaf_lasthash(newblk->bp, NULL); in xfs_attr3_leaf_split() 1371 entry->hashval = cpu_to_be32(args->hashval); in xfs_attr3_leaf_add_work() 1384 (be32_to_cpu(entry->hashval) >= be32_to_cpu((entry-1)->hashval))); in xfs_attr3_leaf_add_work() 1386 (be32_to_cpu(entry->hashval) <= be32_to_cpu((entry+1)->hashval))); in xfs_attr3_leaf_add_work() 1514 ((be32_to_cpu(entries2[0].hashval) < in xfs_attr3_leaf_order() 1515 be32_to_cpu(entries1[0].hashval)) || in xfs_attr3_leaf_order() [all …]
|
D | xfs_dir2_node.c | 470 ASSERT(index == 0 || be32_to_cpu(ents[index - 1].hashval) <= args->hashval); in xfs_dir2_leafn_add() 472 be32_to_cpu(ents[index].hashval) >= args->hashval); in xfs_dir2_leafn_add() 498 lep->hashval = cpu_to_be32(args->hashval); in xfs_dir2_leafn_add() 556 return be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_dir2_leaf_lasthash() 618 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_addname() 765 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_entry() 985 (be32_to_cpu(ents2[0].hashval) < be32_to_cpu(ents1[0].hashval) || in xfs_dir2_leafn_order() 986 be32_to_cpu(ents2[hdr2.count - 1].hashval) < in xfs_dir2_leafn_order() 987 be32_to_cpu(ents1[hdr1.count - 1].hashval))) in xfs_dir2_leafn_order() 1051 midhash = be32_to_cpu(ents2[mid - hdr1.count].hashval); in xfs_dir2_leafn_rebalance() [all …]
|
D | xfs_da_btree.h | 56 xfs_dahash_t hashval; /* hash value of name */ member 104 xfs_dahash_t hashval; /* last hash value in block */ member
|
D | xfs_dir2_leaf.c | 126 if (be32_to_cpu(ents[i].hashval) > in xfs_dir3_leaf_check_int() 127 be32_to_cpu(ents[i + 1].hashval)) in xfs_dir3_leaf_check_int() 686 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leaf_addname() 912 lep->hashval = cpu_to_be32(args->hashval); in xfs_dir2_leaf_addname() 1275 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leaf_lookup_int() 1583 hashwant = args->hashval; in xfs_dir2_leaf_search_hash() 1586 if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant) in xfs_dir2_leaf_search_hash() 1597 while (mid > 0 && be32_to_cpu(lep[mid - 1].hashval) == hashwant) { in xfs_dir2_leaf_search_hash()
|
D | xfs_da_format.h | 82 __be32 hashval; /* hash value for this descendant */ member 449 __be32 hashval; /* hash value of name */ member 647 __be32 hashval; /* hash value of name */ member
|
D | xfs_dir2.c | 269 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_createname() 365 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_lookup() 437 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_removename() 498 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_replace()
|
D | xfs_dir2_data.c | 199 be32_to_cpu(lep[i].hashval) == hash) in __xfs_dir3_data_check() 218 if (i > 0 && be32_to_cpu(lep[i].hashval) < in __xfs_dir3_data_check() 219 be32_to_cpu(lep[i - 1].hashval)) in __xfs_dir3_data_check()
|
D | xfs_attr.c | 86 args->hashval = xfs_da_hashname(args->name, args->namelen); in xfs_attr_args_init()
|
/Linux-v4.19/fs/ |
D | inode.c | 458 static unsigned long hash(struct super_block *sb, unsigned long hashval) in hash() argument 462 tmp = (hashval * (unsigned long)sb) ^ (GOLDEN_RATIO_PRIME + hashval) / in hash() 476 void __insert_inode_hash(struct inode *inode, unsigned long hashval) in __insert_inode_hash() argument 478 struct hlist_head *b = inode_hashtable + hash(inode->i_sb, hashval); in __insert_inode_hash() 1047 struct inode *inode_insert5(struct inode *inode, unsigned long hashval, in inode_insert5() argument 1051 struct hlist_head *head = inode_hashtable + hash(inode->i_sb, hashval); in inode_insert5() 1116 struct inode *iget5_locked(struct super_block *sb, unsigned long hashval, in iget5_locked() argument 1120 struct inode *inode = ilookup5(sb, hashval, test, data); in iget5_locked() 1127 inode = inode_insert5(new, hashval, test, set, data); in iget5_locked() 1306 struct inode *ilookup5_nowait(struct super_block *sb, unsigned long hashval, in ilookup5_nowait() argument [all …]
|
/Linux-v4.19/fs/xfs/scrub/ |
D | dabtree.c | 148 parent_hash = be32_to_cpu(entry->hashval); in xchk_da_btree_hash() 412 blk->hashval = xfs_attr_leaf_lasthash(blk->bp, pmaxrecs); in xchk_da_btree_block() 421 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block() 430 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block() 443 blk->hashval = be32_to_cpu(btree[*pmaxrecs - 1].hashval); in xchk_da_btree_block() 570 error = xchk_da_btree_hash(&ds, level, &key->hashval); in xchk_da_btree()
|
D | attr.c | 101 args.hashval = xfs_da_hashname(args.name, args.namelen); in xchk_xattr_listent() 210 if (be32_to_cpu(ent->hashval) < *last_hashval) in xchk_xattr_entry() 212 *last_hashval = be32_to_cpu(ent->hashval); in xchk_xattr_entry() 362 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_xattr_rec() 376 hash = be32_to_cpu(ent->hashval); in xchk_xattr_rec()
|
D | dir.c | 206 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_dir_rec() 267 hash = be32_to_cpu(ent->hashval); in xchk_dir_rec() 541 hash = be32_to_cpu(ents[i].hashval); in xchk_directory_leaf1_bestfree()
|
/Linux-v4.19/net/ipv4/netfilter/ |
D | ipt_CLUSTERIP.c | 317 unsigned long hashval; in clusterip_hashfn() local 337 hashval = jhash_1word(ntohl(iph->saddr), in clusterip_hashfn() 341 hashval = jhash_2words(ntohl(iph->saddr), sport, in clusterip_hashfn() 345 hashval = jhash_3words(ntohl(iph->saddr), sport, dport, in clusterip_hashfn() 350 hashval = 0; in clusterip_hashfn() 359 return reciprocal_scale(hashval, config->num_total_nodes) + 1; in clusterip_hashfn()
|
/Linux-v4.19/fs/btrfs/ |
D | check-integrity.c | 499 const unsigned int hashval = in btrfsic_block_hashtable_add() local 504 list_add(&b->collision_resolving_node, h->table + hashval); in btrfsic_block_hashtable_add() 517 const unsigned int hashval = in btrfsic_block_hashtable_lookup() local 523 list_for_each_entry(b, h->table + hashval, collision_resolving_node) { in btrfsic_block_hashtable_lookup() 544 const unsigned int hashval = in btrfsic_block_link_hashtable_add() local 553 list_add(&l->collision_resolving_node, h->table + hashval); in btrfsic_block_link_hashtable_add() 568 const unsigned int hashval = in btrfsic_block_link_hashtable_lookup() local 576 list_for_each_entry(l, h->table + hashval, collision_resolving_node) { in btrfsic_block_link_hashtable_lookup() 602 const unsigned int hashval = in btrfsic_dev_state_hashtable_add() local 606 list_add(&ds->collision_resolving_node, h->table + hashval); in btrfsic_dev_state_hashtable_add() [all …]
|
/Linux-v4.19/lib/ |
D | vsprintf.c | 1715 unsigned long hashval; in ptr_to_id() local 1719 hashval = hash_long((unsigned long)ptr, 32); in ptr_to_id() 1720 return pointer_string(buf, end, (const void *)hashval, spec); in ptr_to_id() 1730 hashval = (unsigned long)siphash_1u64((u64)ptr, &ptr_key); in ptr_to_id() 1735 hashval = hashval & 0xffffffff; in ptr_to_id() 1737 hashval = (unsigned long)siphash_1u32((u32)ptr, &ptr_key); in ptr_to_id() 1739 return pointer_string(buf, end, (const void *)hashval, spec); in ptr_to_id()
|
/Linux-v4.19/fs/nfsd/ |
D | nfs4state.c | 347 find_openstateowner_str_locked(unsigned int hashval, struct nfsd4_open *open, in find_openstateowner_str_locked() argument 354 list_for_each_entry(so, &clp->cl_ownerstr_hashtbl[hashval], in find_openstateowner_str_locked() 365 find_openstateowner_str(unsigned int hashval, struct nfsd4_open *open, in find_openstateowner_str() argument 371 oo = find_openstateowner_str_locked(hashval, open, clp); in find_openstateowner_str() 3457 static void nfsd4_init_file(struct knfsd_fh *fh, unsigned int hashval, in nfsd4_init_file() argument 3477 hlist_add_head_rcu(&fp->fi_hash, &file_hashtbl[hashval]); in nfsd4_init_file() 3813 find_file_locked(struct knfsd_fh *fh, unsigned int hashval) in find_file_locked() argument 3817 hlist_for_each_entry_rcu(fp, &file_hashtbl[hashval], fi_hash) { in find_file_locked() 3830 unsigned int hashval = file_hashval(fh); in find_file() local 3833 fp = find_file_locked(fh, hashval); in find_file() [all …]
|
/Linux-v4.19/fs/isofs/ |
D | inode.c | 1535 unsigned long hashval; in __isofs_iget() local 1546 hashval = (block << sb->s_blocksize_bits) | offset; in __isofs_iget() 1548 inode = iget5_locked(sb, hashval, &isofs_iget5_test, in __isofs_iget()
|
/Linux-v4.19/include/linux/ |
D | fs.h | 2906 unsigned long hashval, int (*test)(struct inode *, void *), 2908 extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval, 2912 extern struct inode *inode_insert5(struct inode *inode, unsigned long hashval, 2945 extern void __insert_inode_hash(struct inode *, unsigned long hashval);
|
/Linux-v4.19/net/sunrpc/auth_gss/ |
D | auth_gss.c | 1171 unsigned long hashval = (unsigned long)clnt; in gss_auth_find_or_add_hashed() local 1177 hashval) { in gss_auth_find_or_add_hashed() 1195 hash_add(gss_auth_hash_table, &new->hash, hashval); in gss_auth_find_or_add_hashed()
|
/Linux-v4.19/fs/ext4/ |
D | namei.c | 1074 __u32 hashval; in ext4_htree_fill_tree() local 1145 hashval = ~0; in ext4_htree_fill_tree() 1147 frame, frames, &hashval); in ext4_htree_fill_tree() 1148 *next_hash = hashval; in ext4_htree_fill_tree() 1159 (count && ((hashval & 1) == 0))) in ext4_htree_fill_tree()
|