summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-11-09 22:51:03 +0000
committerphk <phk@FreeBSD.org>2004-11-09 22:51:03 +0000
commit7bef55364a66de53ef29f35f1db7f570128b78d2 (patch)
tree999b2af3885c8b6bb8e23d822e011071c16f8fda /sys
parentc09a33b488eb40bd0c76b963fdf2f3aacf075bb1 (diff)
downloadFreeBSD-src-7bef55364a66de53ef29f35f1db7f570128b78d2.zip
FreeBSD-src-7bef55364a66de53ef29f35f1db7f570128b78d2.tar.gz
Remove vnode->v_cachedfs.
It was only used for the highly dangerous "export all vnodes with a sysctl" function.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_subr.c1
-rw-r--r--sys/kern/vfs_vnops.c2
-rw-r--r--sys/sys/vnode.h1
3 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 0a62d38..9e1e899 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -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:
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index a32e128..3ca3890 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -232,7 +232,6 @@ restart:
}
}
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;
/*
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index d3054c6..43a8666 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
- dev_t v_cachedfs; /* cached fs id */
ino_t v_cachedid; /* cached file id */
};
OpenPOWER on IntegriCloud