示例#1
0
static __inline struct pefs_node_listhead *
pefs_nodehash_gethead(struct vnode *vp)
{
	uint32_t v;

	v = pefs_hash_mixptr(vp);
	return (&pefs_nodehash_tbl[v & pefs_nodehash_mask]);
}
示例#2
0
static __inline uint32_t
dircache_hashname(struct pefs_dircache *pd, char const *buf, size_t len)
{
	uint32_t h;

	h = pefs_hash_mixptr(pd);
	h ^= hash32_buf(buf, len, HASHINIT * len);
	return (h);
}