summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2007-05-29 16:25:08 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2007-05-29 16:25:08 +0000
commitd96c5b5b0280561422f132820f68608e945cb85d (patch)
tree75ed4e263c8b77872e582d14a2f0a4425f70d3af
parentf52ce0ed830d4a0dfb0123b3b688bf32d7770aef (diff)
Nuke the predefined vattr, it was only used for !DIAGNOSTIC,
this shrinks the i386 RAMDISK a bit. (Using the predefined vattr for GENERIC meant a growth of 416bytes without any measurable perfomance gain). ok krw@, art@
-rw-r--r--sys/kern/vfs_init.c8
-rw-r--r--sys/sys/vnode.h9
2 files changed, 2 insertions, 15 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index 89cfca4001a..7820e78beb1 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_init.c,v 1.18 2005/11/06 13:07:48 pedro Exp $ */
+/* $OpenBSD: vfs_init.c,v 1.19 2007/05/29 16:25:07 thib Exp $ */
/* $NetBSD: vfs_init.c,v 1.6 1996/02/09 19:00:58 christos Exp $ */
/*
@@ -225,8 +225,6 @@ vfs_op_init(void)
/*
* Routines having to do with the management of the vnode table.
*/
-struct vattr va_null;
-
struct pool namei_pool;
/*
@@ -255,10 +253,6 @@ vfsinit(void)
*/
vfs_op_init();
vfs_opv_init(); /* finish the job */
- /*
- * Initialize each file system type.
- */
- vattr_null(&va_null);
/*
* Stop using vfsconf and maxvfsconf as a temporary storage,
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 718a5d7513a..37d0654dd4b 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnode.h,v 1.83 2007/05/29 05:28:54 beck Exp $ */
+/* $OpenBSD: vnode.h,v 1.84 2007/05/29 16:25:07 thib Exp $ */
/* $NetBSD: vnode.h,v 1.38 1996/02/29 20:59:05 cgd Exp $ */
/*
@@ -230,12 +230,7 @@ TAILQ_HEAD(freelst, vnode);
extern struct freelst vnode_hold_list; /* free vnodes referencing buffers */
extern struct freelst vnode_free_list; /* vnode free list */
-#ifdef DIAGNOSTIC
#define VATTR_NULL(vap) vattr_null(vap)
-#else
-#define VATTR_NULL(vap) (*(vap) = va_null) /* initialize a vattr */
-#endif /* DIAGNOSTIC */
-
#define VREF(vp) vref(vp) /* increase reference */
#define NULLVP ((struct vnode *)NULL)
#define VN_KNOTE(vp, b) \
@@ -248,8 +243,6 @@ extern struct vnode *rootvnode; /* root (i.e. "/") vnode */
extern int desiredvnodes; /* number of vnodes desired */
extern time_t syncdelay; /* time to delay syncing vnodes */
extern int rushjob; /* # of slots syncer should run ASAP */
-extern struct vattr va_null; /* predefined null vattr structure */
-
#endif /* _KERNEL */