Home
last modified time | relevance | path

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

12

/linux-6.12.1/fs/xfs/
Dxfs_attr_list.c44 (!((cursor)->initted) && !((cursor)->hashval) && \
166 if (sbp->hash == cursor->hashval) { in xfs_attr_shortform_list()
171 } else if (sbp->hash > cursor->hashval) { in xfs_attr_shortform_list()
182 if (cursor->hashval != sbp->hash) { in xfs_attr_shortform_list()
183 cursor->hashval = sbp->hash; in xfs_attr_shortform_list()
270 if (cursor->hashval <= be32_to_cpu(btree->hashval)) { in xfs_attr_node_list_lookup()
372 if (cursor->hashval > be32_to_cpu( in xfs_attr_node_list()
373 entries[leafhdr.count - 1].hashval)) { in xfs_attr_node_list()
377 } else if (cursor->hashval <= be32_to_cpu( in xfs_attr_node_list()
378 entries[0].hashval)) { in xfs_attr_node_list()
[all …]
Dxfs_trace.h109 __field(u32, hashval)
122 __entry->hashval = ctx->cursor.hashval;
135 __entry->hashval,
333 __field(u32, hashval)
348 __entry->hashval = ctx->cursor.hashval;
356 __entry->bt_hashval = be32_to_cpu(btree->hashval);
364 __entry->hashval,
1934 __field(xfs_dahash_t, hashval)
1945 __entry->hashval = args->hashval;
1957 __entry->hashval,
[all …]
Dxfs_handle.c456 (context.cursor.hashval || context.cursor.blkno || in xfs_ioc_attr_list()
/linux-6.12.1/fs/xfs/libxfs/
Dxfs_da_btree.c804 btree[0].hashval = cpu_to_be32(blk1->hashval); in xfs_da3_root_split()
806 btree[1].hashval = cpu_to_be32(blk2->hashval); in xfs_da3_root_split()
962 ((be32_to_cpu(btree2[0].hashval) < be32_to_cpu(btree1[0].hashval)) || in xfs_da3_node_rebalance()
963 (be32_to_cpu(btree2[nodehdr2.count - 1].hashval) < in xfs_da3_node_rebalance()
964 be32_to_cpu(btree1[nodehdr1.count - 1].hashval)))) { in xfs_da3_node_rebalance()
1054 blk1->hashval = be32_to_cpu(btree1[nodehdr1.count - 1].hashval); in xfs_da3_node_rebalance()
1055 blk2->hashval = be32_to_cpu(btree2[nodehdr2.count - 1].hashval); in xfs_da3_node_rebalance()
1101 btree[oldblk->index].hashval = cpu_to_be32(newblk->hashval); in xfs_da3_node_add()
1116 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_add()
1449 return be32_to_cpu(nodehdr.btree[nodehdr.count - 1].hashval); in xfs_da3_node_lasthash()
[all …]
Dxfs_attr_leaf.c253 __u32 hashval; in xfs_attr3_leaf_verify_entry() local
256 hashval = be32_to_cpu(ent->hashval); in xfs_attr3_leaf_verify_entry()
257 if (hashval < *last_hashval) in xfs_attr3_leaf_verify_entry()
259 *last_hashval = hashval; in xfs_attr3_leaf_verify_entry()
1196 nargs.hashval = be32_to_cpu(entry->hashval); in xfs_attr3_leaf_to_shortform()
1264 icnodehdr.btree[0].hashval = entries[icleafhdr.count - 1].hashval; in xfs_attr3_leaf_to_node()
1390 oldblk->hashval = xfs_attr_leaf_lasthash(oldblk->bp, NULL); in xfs_attr3_leaf_split()
1391 newblk->hashval = xfs_attr_leaf_lasthash(newblk->bp, NULL); in xfs_attr3_leaf_split()
1529 entry->hashval = cpu_to_be32(args->hashval); in xfs_attr3_leaf_add_work()
1544 (be32_to_cpu(entry->hashval) >= be32_to_cpu((entry-1)->hashval))); in xfs_attr3_leaf_add_work()
[all …]
Dxfs_dir2_block.c461 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
463 if (hash < args->hashval) in xfs_dir2_block_addname()
468 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
562 blp[mid].hashval = cpu_to_be32(args->hashval); in xfs_dir2_block_addname()
720 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int()
722 if (hash < args->hashval) in xfs_dir2_block_lookup_int()
735 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int()
764 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int()
921 return be32_to_cpu(la->hashval) < be32_to_cpu(lb->hashval) ? -1 : in xfs_dir2_block_sort()
922 (be32_to_cpu(la->hashval) > be32_to_cpu(lb->hashval) ? 1 : 0); in xfs_dir2_block_sort()
[all …]
Dxfs_dir2_node.c544 ASSERT(index == 0 || be32_to_cpu(ents[index - 1].hashval) <= args->hashval); in xfs_dir2_leafn_add()
546 be32_to_cpu(ents[index].hashval) >= args->hashval); in xfs_dir2_leafn_add()
572 lep->hashval = cpu_to_be32(args->hashval); in xfs_dir2_leafn_add()
625 return be32_to_cpu(leafhdr.ents[leafhdr.count - 1].hashval); in xfs_dir2_leaf_lasthash()
685 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_addname()
835 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_entry()
1056 (be32_to_cpu(ents2[0].hashval) < be32_to_cpu(ents1[0].hashval) || in xfs_dir2_leafn_order()
1057 be32_to_cpu(ents2[hdr2.count - 1].hashval) < in xfs_dir2_leafn_order()
1058 be32_to_cpu(ents1[hdr1.count - 1].hashval))) in xfs_dir2_leafn_order()
1122 midhash = be32_to_cpu(ents2[mid - hdr1.count].hashval); in xfs_dir2_leafn_rebalance()
[all …]
Dxfs_attr.h35 __u32 hashval; /* hash value of next entry to add */ member
640 args->hashval = xfs_attr_hashval(args->dp->i_mount, args->attr_filter, in xfs_attr_sethash()
Dxfs_da_btree.h74 xfs_dahash_t hashval; /* hash value of name */ member
122 xfs_dahash_t hashval; /* last hash value in block */ member
Dxfs_da_format.h82 __be32 hashval; /* hash value for this descendant */ member
440 __be32 hashval; /* hash value of name */ member
630 __be32 hashval; /* hash value of name */ member
Dxfs_dir2_leaf.c174 if (be32_to_cpu(hdr->ents[i].hashval) > in xfs_dir3_leaf_check_int()
175 be32_to_cpu(hdr->ents[i + 1].hashval)) in xfs_dir3_leaf_check_int()
726 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leaf_addname()
952 lep->hashval = cpu_to_be32(args->hashval); in xfs_dir2_leaf_addname()
1312 be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leaf_lookup_int()
1619 hashwant = args->hashval; in xfs_dir2_leaf_search_hash()
1622 if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant) in xfs_dir2_leaf_search_hash()
1633 while (mid > 0 && be32_to_cpu(lep[mid - 1].hashval) == hashwant) { in xfs_dir2_leaf_search_hash()
Dxfs_dir2.c352 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_createname()
447 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_lookup()
515 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_removename()
575 args->hashval = xfs_dir2_hashname(dp->i_mount, name); in xfs_dir_replace()
Dxfs_dir2_data.c263 be32_to_cpu(lep[i].hashval) == hash) in __xfs_dir3_data_check()
282 if (i > 0 && be32_to_cpu(lep[i].hashval) < in __xfs_dir3_data_check()
283 be32_to_cpu(lep[i - 1].hashval)) in __xfs_dir3_data_check()
/linux-6.12.1/fs/xfs/scrub/
Ddabtree.c133 parent_hash = be32_to_cpu(entry->hashval); in xchk_da_btree_hash()
410 blk->hashval = xfs_attr_leaf_lasthash(blk->bp, pmaxrecs); in xchk_da_btree_block()
419 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block()
428 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block()
441 blk->hashval = be32_to_cpu(btree[*pmaxrecs - 1].hashval); in xchk_da_btree_block()
476 if (be32_to_cpu(key->hashval) != blk->hashval) { in xchk_da_btree_block()
586 error = xchk_da_btree_hash(ds, level, &key->hashval); in xchk_da_btree()
Dattr.c344 if (be32_to_cpu(ent->hashval) < *last_hashval) in xchk_xattr_entry()
346 *last_hashval = be32_to_cpu(ent->hashval); in xchk_xattr_entry()
510 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_xattr_rec()
524 hash = be32_to_cpu(ent->hashval); in xchk_xattr_rec()
Ddir.c340 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_dir_rec()
401 hash = be32_to_cpu(ent->hashval); in xchk_dir_rec()
678 hash = be32_to_cpu(leafhdr.ents[i].hashval); in xchk_directory_leaf1_bestfree()
Dreaddir.c320 .hashval = xfs_dir2_hashname(dp->i_mount, name), in xchk_dir_lookup()
/linux-6.12.1/fs/
Dinode.c560 static unsigned long hash(struct super_block *sb, unsigned long hashval) in hash() argument
564 tmp = (hashval * (unsigned long)sb) ^ (GOLDEN_RATIO_PRIME + hashval) / in hash()
578 void __insert_inode_hash(struct inode *inode, unsigned long hashval) in __insert_inode_hash() argument
580 struct hlist_head *b = inode_hashtable + hash(inode->i_sb, hashval); in __insert_inode_hash()
1255 struct inode *inode_insert5(struct inode *inode, unsigned long hashval, in inode_insert5() argument
1259 struct hlist_head *head = inode_hashtable + hash(inode->i_sb, hashval); in inode_insert5()
1328 struct inode *iget5_locked(struct super_block *sb, unsigned long hashval, in iget5_locked() argument
1332 struct inode *inode = ilookup5(sb, hashval, test, data); in iget5_locked()
1338 inode = inode_insert5(new, hashval, test, set, data); in iget5_locked()
1358 struct inode *iget5_locked_rcu(struct super_block *sb, unsigned long hashval, in iget5_locked_rcu() argument
[all …]
/linux-6.12.1/include/trace/events/
Dkmem.h352 unsigned long hashval; in mm_ptr_to_hash() local
354 ret = ptr_to_hashval(ptr, &hashval); in mm_ptr_to_hash()
359 return (unsigned int)hashval; in mm_ptr_to_hash()
/linux-6.12.1/lib/
Dvsprintf.c780 unsigned long hashval; in subsys_initcall() local
789 hashval = (unsigned long)siphash_1u64((u64)ptr, &ptr_key); in subsys_initcall()
794 hashval = hashval & 0xffffffff; in subsys_initcall()
796 hashval = (unsigned long)siphash_1u32((u32)ptr, &ptr_key); in subsys_initcall()
798 *hashval_out = hashval; in subsys_initcall()
811 unsigned long hashval; in ptr_to_id() local
823 hashval = hash_long((unsigned long)ptr, 32); in ptr_to_id()
824 return pointer_string(buf, end, (const void *)hashval, spec); in ptr_to_id()
827 ret = __ptr_to_hashval(ptr, &hashval); in ptr_to_id()
834 return pointer_string(buf, end, (const void *)hashval, spec); in ptr_to_id()
/linux-6.12.1/fs/smb/server/
Dvfs_cache.c66 static unsigned long inode_hash(struct super_block *sb, unsigned long hashval) in inode_hash() argument
70 tmp = (hashval * (unsigned long)sb) ^ (GOLDEN_RATIO_PRIME + hashval) / in inode_hash()
/linux-6.12.1/fs/isofs/
Dinode.c1492 unsigned long hashval; in __isofs_iget() local
1503 hashval = (block << sb->s_blocksize_bits) | offset; in __isofs_iget()
1505 inode = iget5_locked(sb, hashval, &isofs_iget5_test, in __isofs_iget()
/linux-6.12.1/include/linux/
Dfs.h3104 unsigned long hashval, int (*test)(struct inode *, void *),
3106 extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval,
3110 extern struct inode *inode_insert5(struct inode *inode, unsigned long hashval,
3183 extern void __insert_inode_hash(struct inode *, unsigned long hashval);
/linux-6.12.1/net/sunrpc/auth_gss/
Dauth_gss.c1178 unsigned long hashval = (unsigned long)clnt; in gss_auth_find_or_add_hashed() local
1184 hashval) { in gss_auth_find_or_add_hashed()
1202 hash_add(gss_auth_hash_table, &new->hash, hashval); in gss_auth_find_or_add_hashed()
/linux-6.12.1/fs/ext4/
Dnamei.c1193 __u32 hashval; in ext4_htree_fill_tree() local
1268 hashval = ~0; in ext4_htree_fill_tree()
1270 frame, frames, &hashval); in ext4_htree_fill_tree()
1271 *next_hash = hashval; in ext4_htree_fill_tree()
1282 (count && ((hashval & 1) == 0))) in ext4_htree_fill_tree()

12