freebsd-dev/sys/sys
Poul-Henning Kamp a051452ae2 Change the 0xdeadb hack to a flag called VDOOMED.
Introduce VFREE which indicates that vnode is on freelist.
Rename vholdrele() to vdrop().
Create vfree() and vbusy() to add/delete vnode from freelist.
Add vfree()/vbusy() to keep (v_holdcnt != 0 || v_usecount != 0)
  vnodes off the freelist.
Generalize vhold()/v_holdcnt to mean "do not recycle".
Fix reassignbuf()s lack of use of vhold().
Use vhold() instead of checking v_cache_src list.
Remove vtouch(), the vnodes are always vget'ed soon enough
  after for it to have any measuable effect.
Add sysctl debug.freevnodes to keep track of things.
Move cache_purge() up in getnewvnodes to avoid race.
Decrement v_usecount after VOP_INACTIVE(), put a vhold() on
  it during VOP_INACTIVE()
Unmacroize vhold()/vdrop()
Print out VDOOMED and VFREE flags (XXX: should use %b)

Reviewed by:		dyson
1997-08-31 07:32:39 +00:00
..
_sigset.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
acct.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
aio.h Clean up some lint associated with the AIO code. 1997-07-17 04:49:43 +00:00
bio.h Fix a problem with the VN device. Specifically, the VN device can 1997-06-15 17:56:53 +00:00
bitstring.h
buf.h Fix a problem with the VN device. Specifically, the VN device can 1997-06-15 17:56:53 +00:00
callout.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
ccdvar.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
cdefs.h Make the necessary changes so that an ELF kernel can be built. I 1997-04-22 06:55:47 +00:00
cdio.h This mega-commit brings the following: 1997-05-04 15:24:23 +00:00
chio.h Retrofit Bruce's changes from rev 1.7. 1997-03-11 19:38:02 +00:00
clist.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
conf.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
cons.h Some staticized variables were still declared to be extern. 1997-07-01 00:54:37 +00:00
copyright.h Extended copyright of PC-98 to 1997. 1997-05-05 13:24:16 +00:00
dataacq.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
devfsext.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
device.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
dir.h Deprecated <sys/dir.h> some more - changed the comment saying that 1997-04-10 13:54:19 +00:00
dirent.h Deprecated <sys/dir.h> some more - changed the comment saying that 1997-04-10 13:54:19 +00:00
disk.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
disklabel.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
diskmbr.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
diskpc98.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
diskslice.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
dkbad.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
dkstat.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
dmap.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
domain.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
elf32.h Collect a few missing symbols from the OpenBSD elf includes. (The OpenBSD 1997-08-30 18:58:31 +00:00
errno.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
exec.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
fbio.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
fcntl.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
fdcio.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
file.h Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined. 1997-03-23 03:37:54 +00:00
filedesc.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
filio.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
ftape.h Waste less space. 1996-11-27 22:52:25 +00:00
gmon.h 32-bit counters aren't large enough for 100+MHz clocks. Use 64-bit 1997-07-13 16:38:39 +00:00
imgact_aout.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
imgact_elf.h Fill out the ELF header files to make them more or less complete. 1997-05-21 23:07:31 +00:00
imgact.h Add argv0 field for imgact structure - for replacing argv0 in shell 1997-04-23 22:02:37 +00:00
inflate.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
interrupt.h Back out 'conflicts' with IRQs, remove intr_registered() decl 1997-07-09 18:08:15 +00:00
ioccom.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
ioctl_bt848.h 1.15 4/18/97 John-Mark Gurney <gurney_j@resnet.uoregon.edu> 1997-05-01 00:15:30 +00:00
ioctl_compat.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
ioctl_meteor.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
ioctl.h Don't include <sys/ioctl.h> in the kernel. Stage 10 (final). Warn if 1997-03-24 12:48:46 +00:00
ipc.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
joystick.h Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>: 1996-09-21 14:59:43 +00:00
kernel.h Add tickadj to struct clockinfo, like NetBSD and OpenBSD. 1997-06-24 18:21:09 +00:00
ktrace.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
libkern.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
linedisc.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
link_aout.h Implement dlsym(RTLD_NEXT, symbol). 1997-08-02 04:56:44 +00:00
link_elf.h Implement dlsym(RTLD_NEXT, symbol). 1997-08-02 04:56:44 +00:00
linker.h This is the kernel linker. To use it, you will first need to apply 1997-05-07 16:05:47 +00:00
lkm.h Make MOD_* macros almost consistent: 1997-04-06 11:14:13 +00:00
lock.h Moved the SIMPLE_LOCK stuff from machine/param.h to machine/lock.h. 1997-08-30 07:59:47 +00:00
lockf.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
lockmgr.h Moved the SIMPLE_LOCK stuff from machine/param.h to machine/lock.h. 1997-08-30 07:59:47 +00:00
malloc.h Fix all areas of the system (or at least all those in LINT) to avoid storing 1997-08-16 19:16:27 +00:00
mbuf.h Fix all areas of the system (or at least all those in LINT) to avoid storing 1997-08-16 19:16:27 +00:00
md5.h Make the MD* header files C++-aware. Also, string arguments are supposed 1997-08-25 05:24:31 +00:00
mdioctl.h
mman.h #ifdef'ed the declaration of lseek() so that -Wredundant-decls doesn't 1997-04-13 15:38:10 +00:00
module.h This is the kernel linker. To use it, you will first need to apply 1997-05-07 16:05:47 +00:00
mount.h Fix all areas of the system (or at least all those in LINT) to avoid storing 1997-08-16 19:16:27 +00:00
mouse.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
msg.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
msgbuf.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
mtio.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
namei.h Make nc_flag and nc_nlen unsigned. 1997-05-11 14:54:41 +00:00
nlist_aout.h Revert $FreeBSD$ to $Id$ 1997-02-23 09:21:14 +00:00
param.h Use roundup(MAXLOGNAME, sizeof(long)) as e_login/s_login arrays size 1997-03-03 09:51:15 +00:00
pciio.h Add PCI LKM support. 1997-01-21 23:23:40 +00:00
pipe.h Removed support for OLD_PIPE. <sys/stat.h> is now missing the hack that 1997-04-09 16:53:45 +00:00
proc.h This is an upgrade so that the kernel supports the AIO calls from 1997-07-06 02:40:43 +00:00
protosw.h Fix all areas of the system (or at least all those in LINT) to avoid storing 1997-08-16 19:16:27 +00:00
ptrace.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
queue.h Add SLIST_FOREACH 1997-08-25 20:21:54 +00:00
random.h Removed #include of <i386/isa/isa_device.h>. inthand2_t is declared in a 1997-06-07 00:57:26 +00:00
reboot.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
resource.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
resourcevar.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
rlist.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
rtprio.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
scsiio.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
select.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
selinfo.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
sem.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
shm.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
signal.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
signalvar.h remove global prototype for setsigvec(). It's static inside kern_sig.c 1997-08-30 11:24:05 +00:00
smp.h Another round of lock pushdown. 1997-08-30 08:08:10 +00:00
snoop.h Only export ioctl-related stuff to applications. Include prerequisite 1997-03-19 04:37:26 +00:00
socket.h Fix all areas of the system (or at least all those in LINT) to avoid storing 1997-08-16 19:16:27 +00:00
socketvar.h Fix all areas of the system (or at least all those in LINT) to avoid storing 1997-08-16 19:16:27 +00:00
sockio.h define SIOC{SG}IFMEDIA ioctls 1997-05-03 21:05:03 +00:00
soundcard.h Bug fix for SNDCTL_DSP_GETOSPACE ioctl. It would report 0 bytes 1997-02-12 06:56:57 +00:00
stat.h Submitted by: Whistle Communications (archie Cobbs) 1997-06-02 06:24:52 +00:00
syscall-hide.h Regenerate 1997-08-19 05:57:04 +00:00
syscall.h Regenerate 1997-08-19 05:57:04 +00:00
sysctl.h Added a sysctl arg, hw.machine_arch. The hw.machine_arch is "ibm-pc" 1997-08-29 09:03:40 +00:00
sysent.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
syslimits.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
syslog.h Add backward compatibility so that static executables built on 1997-03-20 16:28:27 +00:00
sysproto.h Regenerate 1997-08-19 05:57:04 +00:00
systm.h Moved splq() to isa/ipl_funcs.c for SMP only. 1997-08-20 05:19:49 +00:00
tablet.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
termios.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
time.h Add tickadj to struct clockinfo, like NetBSD and OpenBSD. 1997-06-24 18:21:09 +00:00
timeb.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
timers.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
times.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
timetc.h Add tickadj to struct clockinfo, like NetBSD and OpenBSD. 1997-06-24 18:21:09 +00:00
timex.h Update our kernel ntp code to the latest from David Mills. The main change 1996-12-30 18:26:28 +00:00
tprintf.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
tty.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
ttychars.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
ttycom.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
ttydefaults.h Map CSTATUS to ^T by default or it never noticed by novice users 1997-08-15 22:43:22 +00:00
ttydev.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
types.h Add posix-style clock and timer types (clockid_t and timer_t) 1997-05-08 13:50:36 +00:00
ucred.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
uio.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
un.h Fix all areas of the system (or at least all those in LINT) to avoid storing 1997-08-16 19:16:27 +00:00
unistd.h Modifications to existing files to support the initial AIO/LIO and 1997-06-16 00:29:36 +00:00
unpcb.h Fix all areas of the system (or at least all those in LINT) to avoid storing 1997-08-16 19:16:27 +00:00
user.h Use roundup(MAXLOGNAME, sizeof(long)) as e_login/s_login arrays size 1997-03-03 09:51:15 +00:00
utsname.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
vadvise.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
vcmd.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
vlimit.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
vmmeter.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
vnioctl.h
vnode.h Change the 0xdeadb hack to a flag called VDOOMED. 1997-08-31 07:32:39 +00:00
vsio.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
wait.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
wormio.h Add 2 new ioctls: WORMIOCREADSESSIONINFO and WORMIOCWRITESESSION. 1997-06-02 20:05:39 +00:00