[chg][dfs]Clean up comments in dfs_elm_free_vnode

Removed unnecessary comments from dfs_elm_free_vnode function.
This commit is contained in:
与非熊
2026-07-13 10:54:07 +08:00
committed by Rbb666
parent cf1c12ee06
commit 63b4a7fcc2
@@ -1018,14 +1018,6 @@ static struct dfs_vnode *dfs_elm_create_vnode(struct dfs_dentry *dentry, int typ
static int dfs_elm_free_vnode(struct dfs_vnode *vnode)
{
/* free_vnode is the backstop destruction point: called from
dfs_vnode_unref when ref_count drops to 0, and from dfs_vnode_destroy on
a create/lookup failure (ref_count == 1). Normally dfs_elm_close has
already released the resource and set data = NULL, so this is a no-op.
It only tears down the resource when close bailed out early due to
ref_count > 1 (a transient lookup had raised it), which is exactly the
leak this guards against. data != NULL means the resource is still
live and the lock is still initialized, so both are released here. */
if (vnode && vnode->ref_count <= 1 && vnode->data != RT_NULL)
{
if (vnode->type == FT_DIRECTORY)