Slim vnodes by another four bytes by eliminating the (now) unused field

v_cachedid.
This commit is contained in:
phk 2004-11-10 07:31:06 +00:00
parent d09bec0098
commit 9fdf027988
3 changed files with 0 additions and 8 deletions

View File

@ -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:

View File

@ -231,9 +231,6 @@ vn_open_cred(ndp, flagp, cmode, cred, fdidx)
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
*/

View File

@ -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) */