fix: the total used vnode number not increased after unlink a file under

/dev/

fix #I3TS1Y
Signed-off-by: yansira <yansira@hotmail.com>
This commit is contained in:
chenwei 2021-06-02 09:36:09 +08:00
parent d632356413
commit 4f514a16af
1 changed files with 1 additions and 0 deletions

View File

@ -642,6 +642,7 @@ int VnodeDestory(struct Vnode *vnode)
free(vnode->data);
free(vnode);
g_totalVnodeSize--;
VnodeDrop();
return LOS_OK;