!176 当从hashtable中获取vnode缓存时,需要刷新vnode缓存的parent指针

Merge pull request !176 from 野生毛霉君/master
This commit is contained in:
openharmony_ci 2021-04-22 11:48:58 +08:00 committed by Gitee
commit ba778ec212
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) { if (newVnode->data == NULL) {
LOS_Panic("#####VfsHashGet error#####\n"); LOS_Panic("#####VfsHashGet error#####\n");
} }
newVnode->parent = parentVnode;
*ppVnode = newVnode; *ppVnode = newVnode;
return 0; return 0;
} }