diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 93140c900c3..23de658b536 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -850,7 +850,6 @@ getnewvnode(tag, mp, vops, vpp) *vpp = vp; vp->v_usecount = 1; vp->v_data = 0; - vp->v_cachedid = -1; VI_UNLOCK(vp); if (pollinfo != NULL) { knlist_destroy(&pollinfo->vpi_selinfo.si_note); @@ -2951,7 +2950,6 @@ sysctl_vnode(SYSCTL_HANDLER_ARGS) case VREG: case VDIR: case VLNK: - xvn[n].xv_ino = vp->v_cachedid; break; case VBLK: case VCHR: diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 3ca3890bcf1..d8196889dc1 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -231,9 +231,6 @@ restart: goto bad; } } - if ((error = VOP_GETATTR(vp, vap, cred, td)) == 0) { - vp->v_cachedid = vap->va_fileid; - } if ((error = VOP_OPEN(vp, fmode, cred, td, fdidx)) != 0) goto bad; /* @@ -667,8 +664,6 @@ vn_stat(vp, sb, active_cred, file_cred, td) if (error) return (error); - vp->v_cachedid = vap->va_fileid; - /* * Zero the spare stat fields */ diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index f1d6f7c57cb..a866cb658a2 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -148,7 +148,6 @@ struct vnode { const char *filename; /* Source file doing locking */ int line; /* Line number doing locking */ #endif - ino_t v_cachedid; /* cached file id */ }; #endif /* defined(_KERNEL) || defined(_KVM_VNODE) */