Home
last modified time | relevance | path

Searched refs:hashval (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.4/fs/nfsd/
Dfilecache.c171 nfsd_file_alloc(struct inode *inode, unsigned int may, unsigned int hashval, in nfsd_file_alloc() argument
185 nf->nf_hashval = hashval; in nfsd_file_alloc()
440 __nfsd_file_close_inode(struct inode *inode, unsigned int hashval, in __nfsd_file_close_inode() argument
446 spin_lock(&nfsd_file_hashtbl[hashval].nfb_lock); in __nfsd_file_close_inode()
447 hlist_for_each_entry_safe(nf, tmp, &nfsd_file_hashtbl[hashval].nfb_head, nf_node) { in __nfsd_file_close_inode()
451 spin_unlock(&nfsd_file_hashtbl[hashval].nfb_lock); in __nfsd_file_close_inode()
466 unsigned int hashval = (unsigned int)hash_long(inode->i_ino, in nfsd_file_close_inode_sync() local
470 __nfsd_file_close_inode(inode, hashval, &dispose); in nfsd_file_close_inode_sync()
471 trace_nfsd_file_close_inode_sync(inode, hashval, !list_empty(&dispose)); in nfsd_file_close_inode_sync()
486 unsigned int hashval = (unsigned int)hash_long(inode->i_ino, in nfsd_file_close_inode() local
[all …]
Dnfs4state.c370 find_openstateowner_str_locked(unsigned int hashval, struct nfsd4_open *open, in find_openstateowner_str_locked() argument
377 list_for_each_entry(so, &clp->cl_ownerstr_hashtbl[hashval], in find_openstateowner_str_locked()
388 find_openstateowner_str(unsigned int hashval, struct nfsd4_open *open, in find_openstateowner_str() argument
394 oo = find_openstateowner_str_locked(hashval, open, clp); in find_openstateowner_str()
3934 static void nfsd4_init_file(struct knfsd_fh *fh, unsigned int hashval, in nfsd4_init_file() argument
3954 hlist_add_head_rcu(&fp->fi_hash, &file_hashtbl[hashval]); in nfsd4_init_file()
4289 find_file_locked(struct knfsd_fh *fh, unsigned int hashval) in find_file_locked() argument
4293 hlist_for_each_entry_rcu(fp, &file_hashtbl[hashval], fi_hash) { in find_file_locked()
4306 unsigned int hashval = file_hashval(fh); in find_file() local
4309 fp = find_file_locked(fh, hashval); in find_file()
[all …]
/Linux-v5.4/fs/xfs/
Dxfs_attr_list.c42 (!((cursor)->initted) && !((cursor)->hashval) && \
155 if (sbp->hash == cursor->hashval) { in xfs_attr_shortform_list()
160 } else if (sbp->hash > cursor->hashval) { in xfs_attr_shortform_list()
173 if (cursor->hashval != sbp->hash) { in xfs_attr_shortform_list()
174 cursor->hashval = sbp->hash; in xfs_attr_shortform_list()
248 if (cursor->hashval <= be32_to_cpu(btree->hashval)) { in xfs_attr_node_list_lookup()
322 if (cursor->hashval > be32_to_cpu( in xfs_attr_node_list()
323 entries[leafhdr.count - 1].hashval)) { in xfs_attr_node_list()
327 } else if (cursor->hashval <= be32_to_cpu( in xfs_attr_node_list()
328 entries[0].hashval)) { in xfs_attr_node_list()
[all …]
Dxfs_trace.h45 __field(u32, hashval)
58 __entry->hashval = ctx->cursor->hashval;
71 __entry->hashval,
169 __field(u32, hashval)
184 __entry->hashval = ctx->cursor->hashval;
192 __entry->bt_hashval = be32_to_cpu(btree->hashval);
200 __entry->hashval,
1674 __field(xfs_dahash_t, hashval)
1684 __entry->hashval = args->hashval;
1695 __entry->hashval,
[all …]
/Linux-v5.4/fs/xfs/libxfs/
Dxfs_da_btree.c642 btree[0].hashval = cpu_to_be32(blk1->hashval); in xfs_da3_root_split()
644 btree[1].hashval = cpu_to_be32(blk2->hashval); in xfs_da3_root_split()
801 ((be32_to_cpu(btree2[0].hashval) < be32_to_cpu(btree1[0].hashval)) || in xfs_da3_node_rebalance()
802 (be32_to_cpu(btree2[nodehdr2.count - 1].hashval) < in xfs_da3_node_rebalance()
803 be32_to_cpu(btree1[nodehdr1.count - 1].hashval)))) { in xfs_da3_node_rebalance()
894 blk1->hashval = be32_to_cpu(btree1[nodehdr1.count - 1].hashval); in xfs_da3_node_rebalance()
895 blk2->hashval = be32_to_cpu(btree2[nodehdr2.count - 1].hashval); in xfs_da3_node_rebalance()
941 btree[oldblk->index].hashval = cpu_to_be32(newblk->hashval); in xfs_da3_node_add()
955 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_add()
1286 return be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_lasthash()
[all …]
Dxfs_dir2_block.c425 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
427 if (hash < args->hashval) in xfs_dir2_block_addname()
432 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
526 blp[mid].hashval = cpu_to_be32(args->hashval); in xfs_dir2_block_addname()
686 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int()
688 if (hash < args->hashval) in xfs_dir2_block_lookup_int()
701 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int()
730 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int()
886 return be32_to_cpu(la->hashval) < be32_to_cpu(lb->hashval) ? -1 : in xfs_dir2_block_sort()
887 (be32_to_cpu(la->hashval) > be32_to_cpu(lb->hashval) ? 1 : 0); in xfs_dir2_block_sort()
[all …]
Dxfs_attr_leaf.c855 nargs.hashval = xfs_da_hashname(sfe->nameval, in xfs_attr_shortform_to_leaf()
1062 nargs.hashval = be32_to_cpu(entry->hashval); in xfs_attr3_leaf_to_shortform()
1131 btree[0].hashval = entries[icleafhdr.count - 1].hashval; in xfs_attr3_leaf_to_node()
1253 oldblk->hashval = xfs_attr_leaf_lasthash(oldblk->bp, NULL); in xfs_attr3_leaf_split()
1254 newblk->hashval = xfs_attr_leaf_lasthash(newblk->bp, NULL); in xfs_attr3_leaf_split()
1389 entry->hashval = cpu_to_be32(args->hashval); in xfs_attr3_leaf_add_work()
1402 (be32_to_cpu(entry->hashval) >= be32_to_cpu((entry-1)->hashval))); in xfs_attr3_leaf_add_work()
1404 (be32_to_cpu(entry->hashval) <= be32_to_cpu((entry+1)->hashval))); in xfs_attr3_leaf_add_work()
1532 ((be32_to_cpu(entries2[0].hashval) < in xfs_attr3_leaf_order()
1533 be32_to_cpu(entries1[0].hashval)) || in xfs_attr3_leaf_order()
[all …]
Dxfs_dir2_node.c464 ASSERT(index == 0 || be32_to_cpu(ents[index - 1].hashval) <= args->hashval); in xfs_dir2_leafn_add()
466 be32_to_cpu(ents[index].hashval) >= args->hashval); in xfs_dir2_leafn_add()
492 lep->hashval = cpu_to_be32(args->hashval); in xfs_dir2_leafn_add()
550 return be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_dir2_leaf_lasthash()
612 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_addname()
760 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_entry()
980 (be32_to_cpu(ents2[0].hashval) < be32_to_cpu(ents1[0].hashval) || in xfs_dir2_leafn_order()
981 be32_to_cpu(ents2[hdr2.count - 1].hashval) < in xfs_dir2_leafn_order()
982 be32_to_cpu(ents1[hdr1.count - 1].hashval))) in xfs_dir2_leafn_order()
1046 midhash = be32_to_cpu(ents2[mid - hdr1.count].hashval); in xfs_dir2_leafn_rebalance()
[all …]
Dxfs_da_btree.h56 xfs_dahash_t hashval; /* hash value of name */ member
106 xfs_dahash_t hashval; /* last hash value in block */ member
Dxfs_dir2_leaf.c123 if (be32_to_cpu(ents[i].hashval) > in xfs_dir3_leaf_check_int()
124 be32_to_cpu(ents[i + 1].hashval)) in xfs_dir3_leaf_check_int()
622 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leaf_addname()
848 lep->hashval = cpu_to_be32(args->hashval); in xfs_dir2_leaf_addname()
1211 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leaf_lookup_int()
1519 hashwant = args->hashval; in xfs_dir2_leaf_search_hash()
1522 if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant) in xfs_dir2_leaf_search_hash()
1533 while (mid > 0 && be32_to_cpu(lep[mid - 1].hashval) == hashwant) { in xfs_dir2_leaf_search_hash()
Dxfs_da_format.h82 __be32 hashval; /* hash value for this descendant */ member
449 __be32 hashval; /* hash value of name */ member
647 __be32 hashval; /* hash value of name */ member
Dxfs_dir2.c265 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_createname()
361 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_lookup()
433 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_removename()
494 args->hashval = dp->i_mount->m_dirnameops->hashname(name); in xfs_dir_replace()
Dxfs_attr.h94 __u32 hashval; /* hash value of next entry to add */ member
Dxfs_dir2_data.c195 be32_to_cpu(lep[i].hashval) == hash) in __xfs_dir3_data_check()
214 if (i > 0 && be32_to_cpu(lep[i].hashval) < in __xfs_dir3_data_check()
215 be32_to_cpu(lep[i - 1].hashval)) in __xfs_dir3_data_check()
/Linux-v5.4/fs/
Dinode.c474 static unsigned long hash(struct super_block *sb, unsigned long hashval) in hash() argument
478 tmp = (hashval * (unsigned long)sb) ^ (GOLDEN_RATIO_PRIME + hashval) / in hash()
492 void __insert_inode_hash(struct inode *inode, unsigned long hashval) in __insert_inode_hash() argument
494 struct hlist_head *b = inode_hashtable + hash(inode->i_sb, hashval); in __insert_inode_hash()
1063 struct inode *inode_insert5(struct inode *inode, unsigned long hashval, in inode_insert5() argument
1067 struct hlist_head *head = inode_hashtable + hash(inode->i_sb, hashval); in inode_insert5()
1132 struct inode *iget5_locked(struct super_block *sb, unsigned long hashval, in iget5_locked() argument
1136 struct inode *inode = ilookup5(sb, hashval, test, data); in iget5_locked()
1143 inode = inode_insert5(new, hashval, test, set, data); in iget5_locked()
1322 struct inode *ilookup5_nowait(struct super_block *sb, unsigned long hashval, in ilookup5_nowait() argument
[all …]
/Linux-v5.4/fs/xfs/scrub/
Ddabtree.c140 parent_hash = be32_to_cpu(entry->hashval); in xchk_da_btree_hash()
408 blk->hashval = xfs_attr_leaf_lasthash(blk->bp, pmaxrecs); in xchk_da_btree_block()
417 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block()
426 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block()
439 blk->hashval = be32_to_cpu(btree[*pmaxrecs - 1].hashval); in xchk_da_btree_block()
566 error = xchk_da_btree_hash(&ds, level, &key->hashval); in xchk_da_btree()
Dattr.c160 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()
427 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_xattr_rec()
441 hash = be32_to_cpu(ent->hashval); in xchk_xattr_rec()
Ddir.c202 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_dir_rec()
263 hash = be32_to_cpu(ent->hashval); in xchk_dir_rec()
537 hash = be32_to_cpu(ents[i].hashval); in xchk_directory_leaf1_bestfree()
/Linux-v5.4/net/ipv4/netfilter/
Dipt_CLUSTERIP.c341 unsigned long hashval; in clusterip_hashfn() local
361 hashval = jhash_1word(ntohl(iph->saddr), in clusterip_hashfn()
365 hashval = jhash_2words(ntohl(iph->saddr), sport, in clusterip_hashfn()
369 hashval = jhash_3words(ntohl(iph->saddr), sport, dport, in clusterip_hashfn()
374 hashval = 0; in clusterip_hashfn()
383 return reciprocal_scale(hashval, config->num_total_nodes) + 1; in clusterip_hashfn()
/Linux-v5.4/fs/erofs/
Dinode.c264 const unsigned long hashval = erofs_inode_hash(nid); in erofs_iget_locked() local
266 return iget5_locked(sb, hashval, erofs_ilookup_test_actor, in erofs_iget_locked()
/Linux-v5.4/fs/btrfs/
Dcheck-integrity.c499 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-v5.4/lib/
Dvsprintf.c747 unsigned long hashval; in ptr_to_id() local
751 hashval = hash_long((unsigned long)ptr, 32); in ptr_to_id()
752 return pointer_string(buf, end, (const void *)hashval, spec); in ptr_to_id()
762 hashval = (unsigned long)siphash_1u64((u64)ptr, &ptr_key); in ptr_to_id()
767 hashval = hashval & 0xffffffff; in ptr_to_id()
769 hashval = (unsigned long)siphash_1u32((u32)ptr, &ptr_key); in ptr_to_id()
771 return pointer_string(buf, end, (const void *)hashval, spec); in ptr_to_id()
/Linux-v5.4/fs/isofs/
Dinode.c1537 unsigned long hashval; in __isofs_iget() local
1548 hashval = (block << sb->s_blocksize_bits) | offset; in __isofs_iget()
1550 inode = iget5_locked(sb, hashval, &isofs_iget5_test, in __isofs_iget()
/Linux-v5.4/include/linux/
Dfs.h3027 unsigned long hashval, int (*test)(struct inode *, void *),
3029 extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval,
3033 extern struct inode *inode_insert5(struct inode *inode, unsigned long hashval,
3066 extern void __insert_inode_hash(struct inode *, unsigned long hashval);
/Linux-v5.4/net/sunrpc/auth_gss/
Dauth_gss.c1169 unsigned long hashval = (unsigned long)clnt; in gss_auth_find_or_add_hashed() local
1175 hashval) { in gss_auth_find_or_add_hashed()
1193 hash_add(gss_auth_hash_table, &new->hash, hashval); in gss_auth_find_or_add_hashed()

12