refresh parent vnode when get vnode from hash table
Change-Id: I3cc042b1fcd00022bc6ba48e2a05d70f351b83de
This commit is contained in:
parent
89ed41a016
commit
e8178d5917
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue