提交 9f69ada9 编写于 作者: O openharmony_ci 提交者: Gitee

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

Merge pull request !30 from Far/fatfs
......@@ -1802,7 +1802,6 @@ int tmpfs_lookup(struct Vnode *parent, const char *relPath, int len, struct Vnod
goto errout_with_objects;
}
vp->parent = parent;
vp->vop = parent->vop;
vp->fop = parent->fop;
vp->data = to;
......@@ -1814,6 +1813,7 @@ int tmpfs_lookup(struct Vnode *parent, const char *relPath, int len, struct Vnod
ret = VfsHashInsert(vp, (uint32_t)to);
}
vp->parent = parent;
*vpp = vp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册