git: a8fc2fe3af3d - main - tarfs: Remove unnecessary code.

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Mon, 06 Feb 2023 16:24:59 UTC
The branch main has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=a8fc2fe3af3d456dd2bc19429a8c55648ad875af

commit a8fc2fe3af3d456dd2bc19429a8c55648ad875af
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2023-02-06 16:24:32 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2023-02-06 16:24:32 +0000

    tarfs: Remove unnecessary code.
    
    Reported by:    kib
    Sponsored by:   Juniper Networks, Inc.
    Sponsored by:   Klara, Inc.
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D38401
---
 sys/fs/tarfs/tarfs_io.c    | 2 --
 sys/fs/tarfs/tarfs_vnops.c | 2 --
 2 files changed, 4 deletions(-)

diff --git a/sys/fs/tarfs/tarfs_io.c b/sys/fs/tarfs/tarfs_io.c
index 87885fbb329c..6127299b23c1 100644
--- a/sys/fs/tarfs/tarfs_io.c
+++ b/sys/fs/tarfs/tarfs_io.c
@@ -551,8 +551,6 @@ tarfs_zreclaim(struct vop_reclaim_args *ap)
 
 	TARFS_DPF(ZIO, "%s(%p)\n", __func__, vp);
 	vp->v_data = NULL;
-	vnode_destroy_vobject(vp);
-	cache_purge(vp);
 	return (0);
 }
 
diff --git a/sys/fs/tarfs/tarfs_vnops.c b/sys/fs/tarfs/tarfs_vnops.c
index 43c434e370e3..266002bca7b2 100644
--- a/sys/fs/tarfs/tarfs_vnops.c
+++ b/sys/fs/tarfs/tarfs_vnops.c
@@ -524,8 +524,6 @@ tarfs_reclaim(struct vop_reclaim_args *ap)
 	tnp = VP_TO_TARFS_NODE(vp);
 
 	vfs_hash_remove(vp);
-	vnode_destroy_vobject(vp);
-	cache_purge(vp);
 
 	TARFS_NODE_LOCK(tnp);
 	tnp->vnode = NULLVP;