diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-19 22:52:24 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-19 22:52:24 +0000 |
commit | 7163fc750d13d17d8b578599e11327cd83c0908b (patch) | |
tree | 09c8eea5c4cb2172fec40be3c0b7a09aa85c8245 /sys/ufs/ffs | |
parent | 2adb8abd14131e004d6818c69ce4a4ce93e069c3 (diff) |
Shave 900 bytes off ramdisk kernels (before compression) by not including
the softdep stubs which get optimized out when DOINGSOFTDEP evaluates to zero
at compile time and thus are never ever invoked; ok deraadt@
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r-- | sys/ufs/ffs/ffs_softdep_stub.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_softdep_stub.c b/sys/ufs/ffs/ffs_softdep_stub.c index b403a97222b..7db07f7ef43 100644 --- a/sys/ufs/ffs/ffs_softdep_stub.c +++ b/sys/ufs/ffs/ffs_softdep_stub.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_softdep_stub.c,v 1.12 2005/12/02 18:02:47 pedro Exp $ */ +/* $OpenBSD: ffs_softdep_stub.c,v 1.13 2006/06/19 22:52:23 miod Exp $ */ /* * Copyright 1998 Marshall Kirk McKusick. All Rights Reserved. @@ -65,6 +65,8 @@ softdep_initialize(void) return; } +#ifndef __OPTIMIZE__ + void softdep_setup_inomapdep(struct buf *bp, struct inode *ip, ino_t newinum) { @@ -157,6 +159,8 @@ softdep_update_inodeblock(struct inode *ip, struct buf *bp, int waitfor) panic("softdep_update_inodeblock called"); } +#endif + void softdep_fsync_mountdev(struct vnode *vp) { @@ -176,10 +180,14 @@ softdep_sync_metadata(struct vop_fsync_args *ap) return (0); } +#ifndef __OPTIMIZE__ + int softdep_slowdown(struct vnode *vp) { panic("softdep_slowdown called"); } +#endif + #endif /* !FFS_SOFTUPDATES */ |