refresh parent vnode when get vnode from hash table

Change-Id: I3cc042b1fcd00022bc6ba48e2a05d70f351b83de
This commit is contained in:
mucor 2021-04-22 11:12:52 +08:00
parent 89ed41a016
commit e8178d5917
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ int VfsJffs2Lookup(struct Vnode *parentVnode, const char *path, int len, struct
if (newVnode->data == NULL) {
LOS_Panic("#####VfsHashGet error#####\n");
}
newVnode->parent = parentVnode;
*ppVnode = newVnode;
return 0;
}