From e8178d59179aa557de800f32aef843e49a912adb Mon Sep 17 00:00:00 2001 From: mucor Date: Thu, 22 Apr 2021 11:12:52 +0800 Subject: [PATCH] refresh parent vnode when get vnode from hash table Change-Id: I3cc042b1fcd00022bc6ba48e2a05d70f351b83de --- fs/jffs2/src/vfs_jffs2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/jffs2/src/vfs_jffs2.c b/fs/jffs2/src/vfs_jffs2.c index 9af683b8..00602238 100644 --- a/fs/jffs2/src/vfs_jffs2.c +++ b/fs/jffs2/src/vfs_jffs2.c @@ -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; }