Lines Matching refs:vnode
32 #include "vnode.h"
53 PRINT_ERR("Create mutex for vnode hash list fail, status: %d", ret);
69 PRINTK(" vnode dump: col %d item %p\n", i, node);
76 uint32_t VfsHashIndex(struct Vnode *vnode)
78 if (vnode == NULL) {
81 return (vnode->hash + vnode->originMount->hashseed);
89 int VfsHashGet(const struct Mount *mount, uint32_t hash, struct Vnode **vnode, VfsHashCmp *fn, void *arg)
93 if (mount == NULL || vnode == NULL) {
110 *vnode = curVnode;
114 *vnode = NULL;
118 void VfsHashRemove(struct Vnode *vnode)
120 if (vnode == NULL) {
124 LOS_ListDelete(&vnode->hashEntry);
128 int VfsHashInsert(struct Vnode *vnode, uint32_t hash)
130 if (vnode == NULL) {
134 vnode->hash = hash;
135 LOS_ListHeadInsert(VfsHashBucket(vnode->originMount, hash), &vnode->hashEntry);