Remove vnode->v_cachedfs.

It was only used for the highly dangerous "export all vnodes with a sysctl"
function.
This commit is contained in:
Poul-Henning Kamp 2004-11-09 22:51:03 +00:00
parent da865ef535
commit b797084e48
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137483
3 changed files with 0 additions and 4 deletions

View File

@ -2951,7 +2951,6 @@ sysctl_vnode(SYSCTL_HANDLER_ARGS)
case VREG:
case VDIR:
case VLNK:
xvn[n].xv_dev = vp->v_cachedfs;
xvn[n].xv_ino = vp->v_cachedid;
break;
case VBLK:

View File

@ -232,7 +232,6 @@ vn_open_cred(ndp, flagp, cmode, cred, fdidx)
}
}
if ((error = VOP_GETATTR(vp, vap, cred, td)) == 0) {
vp->v_cachedfs = vap->va_fsid;
vp->v_cachedid = vap->va_fileid;
}
if ((error = VOP_OPEN(vp, fmode, cred, td, fdidx)) != 0)
@ -668,7 +667,6 @@ vn_stat(vp, sb, active_cred, file_cred, td)
if (error)
return (error);
vp->v_cachedfs = vap->va_fsid;
vp->v_cachedid = vap->va_fileid;
/*

View File

@ -148,7 +148,6 @@ struct vnode {
const char *filename; /* Source file doing locking */
int line; /* Line number doing locking */
#endif
dev_t v_cachedfs; /* cached fs id */
ino_t v_cachedid; /* cached file id */
};