Lines Matching defs:hash
53 PRINT_ERR("Create mutex for vnode hash list fail, status: %d", ret);
81 return (vnode->hash + vnode->originMount->hashseed);
84 static LOS_DL_LIST *VfsHashBucket(const struct Mount *mp, uint32_t hash)
86 return (&g_vnodeHashEntrys[(hash + mp->hashseed) & g_vnodeHashMask]);
89 int VfsHashGet(const struct Mount *mount, uint32_t hash, struct Vnode **vnode, VfsHashCmp *fn, void *arg)
98 LOS_DL_LIST *list = VfsHashBucket(mount, hash);
100 if (curVnode->hash != hash) {
128 int VfsHashInsert(struct Vnode *vnode, uint32_t hash)
134 vnode->hash = hash;
135 LOS_ListHeadInsert(VfsHashBucket(vnode->originMount, hash), &vnode->hashEntry);