Skip to content

Commit 63b4a7f

Browse files
Unbear-HzRbb666
authored andcommitted
[chg][dfs]Clean up comments in dfs_elm_free_vnode
Removed unnecessary comments from dfs_elm_free_vnode function.
1 parent cf1c12e commit 63b4a7f

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

  • components/dfs/dfs_v2/filesystems/elmfat

components/dfs/dfs_v2/filesystems/elmfat/dfs_elm.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,14 +1018,6 @@ static struct dfs_vnode *dfs_elm_create_vnode(struct dfs_dentry *dentry, int typ
10181018

10191019
static int dfs_elm_free_vnode(struct dfs_vnode *vnode)
10201020
{
1021-
/* free_vnode is the backstop destruction point: called from
1022-
dfs_vnode_unref when ref_count drops to 0, and from dfs_vnode_destroy on
1023-
a create/lookup failure (ref_count == 1). Normally dfs_elm_close has
1024-
already released the resource and set data = NULL, so this is a no-op.
1025-
It only tears down the resource when close bailed out early due to
1026-
ref_count > 1 (a transient lookup had raised it), which is exactly the
1027-
leak this guards against. data != NULL means the resource is still
1028-
live and the lock is still initialized, so both are released here. */
10291021
if (vnode && vnode->ref_count <= 1 && vnode->data != RT_NULL)
10301022
{
10311023
if (vnode->type == FT_DIRECTORY)

0 commit comments

Comments
 (0)