/linux/fs/nfsd/ |
A D | filecache.c | 187 nf->nf_hashval = hashval; in nfsd_file_alloc() 515 spin_lock(&nfsd_file_hashtbl[hashval].nfb_lock); in __nfsd_file_close_inode() 520 spin_unlock(&nfsd_file_hashtbl[hashval].nfb_lock); in __nfsd_file_close_inode() 539 __nfsd_file_close_inode(inode, hashval, &dispose); in nfsd_file_close_inode_sync() 889 unsigned int hashval, struct net *net) in nfsd_file_find_locked() argument 924 unsigned int hashval; in nfsd_file_is_cached() local 949 unsigned int hashval; in nfsd_file_acquire() local 974 spin_lock(&nfsd_file_hashtbl[hashval].nfb_lock); in nfsd_file_acquire() 1030 ++nfsd_file_hashtbl[hashval].nfb_count; in nfsd_file_acquire() 1031 nfsd_file_hashtbl[hashval].nfb_maxcount = max(nfsd_file_hashtbl[hashval].nfb_maxcount, in nfsd_file_acquire() [all …]
|
A D | nfs4state.c | 498 list_for_each_entry(so, &clp->cl_ownerstr_hashtbl[hashval], in find_openstateowner_str_locked() 515 oo = find_openstateowner_str_locked(hashval, open, clp); in find_openstateowner_str() 4503 find_file_locked(struct svc_fh *fh, unsigned int hashval) in find_file_locked() argument 4518 unsigned int hashval) in insert_file() argument 4534 nfsd4_init_file(fh, hashval, new); in insert_file() 4545 unsigned int hashval = file_hashval(fh); in find_file() local 4548 fp = find_file_locked(fh, hashval); in find_file() 4557 unsigned int hashval = file_hashval(fh); in find_or_add_file() local 4560 fp = find_file_locked(fh, hashval); in find_or_add_file() 4565 return insert_file(new, fh, hashval); in find_or_add_file() [all …]
|
/linux/fs/xfs/ |
A D | xfs_attr_list.c | 156 if (sbp->hash == cursor->hashval) { in xfs_attr_shortform_list() 161 } else if (sbp->hash > cursor->hashval) { in xfs_attr_shortform_list() 172 if (cursor->hashval != sbp->hash) { in xfs_attr_shortform_list() 173 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() 333 entries[0].hashval)) { in xfs_attr_node_list() 413 if (be32_to_cpu(entry->hashval) == cursor->hashval) { in xfs_attr3_leaf_list_int() 420 cursor->hashval) { in xfs_attr3_leaf_list_int() 442 if (be32_to_cpu(entry->hashval) != cursor->hashval) { in xfs_attr3_leaf_list_int() [all …]
|
A D | xfs_trace.h | 89 __field(u32, hashval) 102 __entry->hashval = ctx->cursor.hashval; 115 __entry->hashval, 305 __field(u32, hashval) 320 __entry->hashval = ctx->cursor.hashval; 336 __entry->hashval, 1925 __field(xfs_dahash_t, hashval) 1935 __entry->hashval = args->hashval; 1946 __entry->hashval, 2002 __entry->hashval = args->hashval; [all …]
|
/linux/fs/xfs/libxfs/ |
A D | xfs_da_btree.c | 735 btree[0].hashval = cpu_to_be32(blk1->hashval); in xfs_da3_root_split() 737 btree[1].hashval = cpu_to_be32(blk2->hashval); in xfs_da3_root_split() 985 blk1->hashval = be32_to_cpu(btree1[nodehdr1.count - 1].hashval); in xfs_da3_node_rebalance() 1032 btree[oldblk->index].hashval = cpu_to_be32(newblk->hashval); in xfs_da3_node_add() 1476 drop_blk->hashval = be32_to_cpu(btree[index - 1].hashval); in xfs_da3_node_remove() 1659 blk->hashval = be32_to_cpu(btree[max - 1].hashval); in xfs_da3_node_lookup_int() 1665 hashval = args->hashval; in xfs_da3_node_lookup_int() 1678 (be32_to_cpu(btree[probe].hashval) == hashval)); in xfs_da3_node_lookup_int() 1685 be32_to_cpu(btree[probe].hashval) >= hashval) { in xfs_da3_node_lookup_int() 1689 be32_to_cpu(btree[probe].hashval) < hashval) { in xfs_da3_node_lookup_int() [all …]
|
A D | xfs_attr_leaf.c | 254 hashval = be32_to_cpu(ent->hashval); in xfs_attr3_leaf_verify_entry() 1160 nargs.hashval = be32_to_cpu(entry->hashval); in xfs_attr3_leaf_to_shortform() 1485 entry->hashval = cpu_to_be32(args->hashval); in xfs_attr3_leaf_add_work() 2391 hashval = args->hashval; in xfs_attr3_leaf_lookup_int() 2395 if (be32_to_cpu(entry->hashval) < hashval) in xfs_attr3_leaf_lookup_int() 2397 else if (be32_to_cpu(entry->hashval) > hashval) in xfs_attr3_leaf_lookup_int() 2406 if (!(span <= 4 || be32_to_cpu(entry->hashval) == hashval)) { in xfs_attr3_leaf_lookup_int() 2415 while (probe > 0 && be32_to_cpu(entry->hashval) >= hashval) { in xfs_attr3_leaf_lookup_int() 2420 be32_to_cpu(entry->hashval) < hashval) { in xfs_attr3_leaf_lookup_int() 2595 entry_d->hashval = entry_s->hashval; in xfs_attr3_leaf_moveents() [all …]
|
A D | xfs_dir2_block.c | 454 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname() 456 if (hash < args->hashval) in xfs_dir2_block_addname() 461 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname() 555 blp[mid].hashval = cpu_to_be32(args->hashval); in xfs_dir2_block_addname() 713 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int() 715 if (hash < args->hashval) in xfs_dir2_block_lookup_int() 728 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int() 757 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int() 914 return be32_to_cpu(la->hashval) < be32_to_cpu(lb->hashval) ? -1 : in xfs_dir2_block_sort() 915 (be32_to_cpu(la->hashval) > be32_to_cpu(lb->hashval) ? 1 : 0); in xfs_dir2_block_sort() [all …]
|
A D | xfs_dir2_node.c | 536 ASSERT(index == 0 || be32_to_cpu(ents[index - 1].hashval) <= args->hashval); in xfs_dir2_leafn_add() 538 be32_to_cpu(ents[index].hashval) >= args->hashval); in xfs_dir2_leafn_add() 564 lep->hashval = cpu_to_be32(args->hashval); in xfs_dir2_leafn_add() 677 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_addname() 825 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_entry() 1046 (be32_to_cpu(ents2[0].hashval) < be32_to_cpu(ents1[0].hashval) || in xfs_dir2_leafn_order() 1048 be32_to_cpu(ents1[hdr1.count - 1].hashval))) in xfs_dir2_leafn_order() 1114 midhash = be32_to_cpu(ents1[mid].hashval); in xfs_dir2_leafn_rebalance() 1115 isleft = args->hashval <= midhash; in xfs_dir2_leafn_rebalance() 1651 drop_blk->hashval = be32_to_cpu(dents[drophdr.count - 1].hashval); in xfs_dir2_leafn_unbalance() [all …]
|
A D | xfs_da_format.h | 82 __be32 hashval; /* hash value for this descendant */ member 428 __be32 hashval; /* hash value of name */ member 613 __be32 hashval; /* hash value of name */ member
|
A D | xfs_dir2_leaf.c | 172 if (be32_to_cpu(hdr->ents[i].hashval) > in xfs_dir3_leaf_check_int() 173 be32_to_cpu(hdr->ents[i + 1].hashval)) in xfs_dir3_leaf_check_int() 669 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leaf_addname() 895 lep->hashval = cpu_to_be32(args->hashval); in xfs_dir2_leaf_addname() 1254 be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leaf_lookup_int() 1559 hashwant = args->hashval; in xfs_dir2_leaf_search_hash() 1562 if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant) in xfs_dir2_leaf_search_hash() 1573 while (mid > 0 && be32_to_cpu(lep[mid - 1].hashval) == hashwant) { in xfs_dir2_leaf_search_hash()
|
A D | xfs_da_btree.h | 63 xfs_dahash_t hashval; /* hash value of name */ member 113 xfs_dahash_t hashval; /* last hash value in block */ member
|
A D | xfs_dir2.c | 271 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_createname() 367 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_lookup() 439 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_removename() 500 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_replace()
|
A D | xfs_attr.h | 35 __u32 hashval; /* hash value of next entry to add */ member
|
A D | xfs_dir2_data.c | 241 be32_to_cpu(lep[i].hashval) == hash) in __xfs_dir3_data_check() 260 if (i > 0 && be32_to_cpu(lep[i].hashval) < in __xfs_dir3_data_check() 261 be32_to_cpu(lep[i - 1].hashval)) in __xfs_dir3_data_check()
|
/linux/fs/xfs/scrub/ |
A D | dabtree.c | 116 parent_hash = be32_to_cpu(entry->hashval); in xchk_da_btree_hash() 392 blk->hashval = xfs_attr_leaf_lasthash(blk->bp, pmaxrecs); in xchk_da_btree_block() 401 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block() 410 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block() 423 blk->hashval = be32_to_cpu(btree[*pmaxrecs - 1].hashval); in xchk_da_btree_block() 452 if (be32_to_cpu(key->hashval) != blk->hashval) { in xchk_da_btree_block() 561 error = xchk_da_btree_hash(ds, level, &key->hashval); in xchk_da_btree()
|
A D | attr.c | 157 args.hashval = xfs_da_hashname(args.name, args.namelen); in xchk_xattr_listent() 265 if (be32_to_cpu(ent->hashval) < *last_hashval) in xchk_xattr_entry() 267 *last_hashval = be32_to_cpu(ent->hashval); in xchk_xattr_entry() 429 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_xattr_rec() 443 hash = be32_to_cpu(ent->hashval); in xchk_xattr_rec()
|
A D | dir.c | 231 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_dir_rec() 292 hash = be32_to_cpu(ent->hashval); in xchk_dir_rec() 559 hash = be32_to_cpu(leafhdr.ents[i].hashval); in xchk_directory_leaf1_bestfree()
|
/linux/fs/ |
A D | inode.c | 487 tmp = (hashval * (unsigned long)sb) ^ (GOLDEN_RATIO_PRIME + hashval) / in hash() 501 void __insert_inode_hash(struct inode *inode, unsigned long hashval) in __insert_inode_hash() argument 1161 struct inode *inode = ilookup5(sb, hashval, test, data); in iget5_locked() 1168 inode = inode_insert5(new, hashval, test, set, data); in iget5_locked() 1347 struct hlist_head *head = inode_hashtable + hash(sb, hashval); in ilookup5_nowait() 1380 inode = ilookup5_nowait(sb, hashval, test, data); in ilookup5() 1446 unsigned long hashval, in find_inode_nowait() argument 1451 struct hlist_head *head = inode_hashtable + hash(sb, hashval); in find_inode_nowait() 1459 mval = match(inode, hashval, data); in find_inode_nowait() 1496 struct hlist_head *head = inode_hashtable + hash(sb, hashval); in find_inode_rcu() [all …]
|
/linux/net/ipv4/netfilter/ |
A D | ipt_CLUSTERIP.c | 352 unsigned long hashval; in clusterip_hashfn() local 372 hashval = jhash_1word(ntohl(iph->saddr), in clusterip_hashfn() 376 hashval = jhash_2words(ntohl(iph->saddr), sport, in clusterip_hashfn() 380 hashval = jhash_3words(ntohl(iph->saddr), sport, dport, in clusterip_hashfn() 385 hashval = 0; in clusterip_hashfn() 394 return reciprocal_scale(hashval, config->num_total_nodes) + 1; in clusterip_hashfn()
|
/linux/include/trace/events/ |
A D | kmem.h | 334 unsigned long hashval; in mm_ptr_to_hash() local 336 ret = ptr_to_hashval(ptr, &hashval); in mm_ptr_to_hash() 341 return (unsigned int)hashval; in mm_ptr_to_hash()
|
/linux/fs/btrfs/ |
A D | check-integrity.c | 441 const unsigned int hashval = in btrfsic_block_hashtable_add() local 446 list_add(&b->collision_resolving_node, h->table + hashval); in btrfsic_block_hashtable_add() 459 const unsigned int hashval = in btrfsic_block_hashtable_lookup() local 465 list_for_each_entry(b, h->table + hashval, collision_resolving_node) { in btrfsic_block_hashtable_lookup() 486 const unsigned int hashval = in btrfsic_block_link_hashtable_add() local 495 list_add(&l->collision_resolving_node, h->table + hashval); in btrfsic_block_link_hashtable_add() 510 const unsigned int hashval = in btrfsic_block_link_hashtable_lookup() local 518 list_for_each_entry(l, h->table + hashval, collision_resolving_node) { in btrfsic_block_link_hashtable_lookup() 544 const unsigned int hashval = in btrfsic_dev_state_hashtable_add() local 548 list_add(&ds->collision_resolving_node, h->table + hashval); in btrfsic_dev_state_hashtable_add() [all …]
|
/linux/fs/ksmbd/ |
A D | vfs_cache.c | 58 static unsigned long inode_hash(struct super_block *sb, unsigned long hashval) in inode_hash() argument 62 tmp = (hashval * (unsigned long)sb) ^ (GOLDEN_RATIO_PRIME + hashval) / in inode_hash()
|
/linux/lib/ |
A D | vsprintf.c | 797 unsigned long hashval; in __ptr_to_hashval() local 803 hashval = (unsigned long)siphash_1u64((u64)ptr, &ptr_key); in __ptr_to_hashval() 808 hashval = hashval & 0xffffffff; in __ptr_to_hashval() 810 hashval = (unsigned long)siphash_1u32((u32)ptr, &ptr_key); in __ptr_to_hashval() 812 *hashval_out = hashval; in __ptr_to_hashval() 825 unsigned long hashval; in ptr_to_id() local 837 hashval = hash_long((unsigned long)ptr, 32); in ptr_to_id() 838 return pointer_string(buf, end, (const void *)hashval, spec); in ptr_to_id() 841 ret = __ptr_to_hashval(ptr, &hashval); in ptr_to_id() 848 return pointer_string(buf, end, (const void *)hashval, spec); in ptr_to_id()
|
/linux/fs/erofs/ |
A D | inode.c | 332 const unsigned long hashval = erofs_inode_hash(nid); in erofs_iget_locked() local 334 return iget5_locked(sb, hashval, erofs_ilookup_test_actor, in erofs_iget_locked()
|
/linux/fs/isofs/ |
A D | inode.c | 1532 unsigned long hashval; in __isofs_iget() local 1543 hashval = (block << sb->s_blocksize_bits) | offset; in __isofs_iget() 1545 inode = iget5_locked(sb, hashval, &isofs_iget5_test, in __isofs_iget()
|