diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-02-23 14:42:40 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-02-23 14:42:40 +0000 |
commit | 96e821437735f981862bb50be47e2c291a615907 (patch) | |
tree | 163b1a3c8a068ad3cf4e4e6e3ba48d03a79eec2c /sys/kern/vfs_subr.c | |
parent | 51008faf3223ac4bc87038c7550574709c459445 (diff) |
Remove the clustering fields from the vnodes and place them in the
file system inode instead
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index bee6b56c1ae..abb8b66970f 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.49 2001/02/21 23:24:30 csapuntz Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.50 2001/02/23 14:42:37 csapuntz Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -72,6 +72,7 @@ #include <uvm/uvm_extern.h> #endif + enum vtype iftovt_tab[16] = { VNON, VFIFO, VCHR, VNON, VDIR, VNON, VBLK, VNON, VREG, VNON, VLNK, VNON, VSOCK, VNON, VNON, VBAD, @@ -426,7 +427,6 @@ getnewvnode(tag, mp, vops, vpp) vp->v_flag &= ~VONFREELIST; simple_unlock(&vnode_free_list_slock); - vp->v_lease = NULL; if (vp->v_type != VBAD) vgonel(vp, p); else @@ -442,13 +442,6 @@ getnewvnode(tag, mp, vops, vpp) splx(s); #endif vp->v_flag = 0; - vp->v_lastr = 0; - vp->v_ralen = 0; - vp->v_maxra = 0; - vp->v_lastw = 0; - vp->v_lasta = 0; - vp->v_cstart = 0; - vp->v_clen = 0; vp->v_socket = 0; } vp->v_type = VNON; |