diff options
author | hsu <hsu@FreeBSD.org> | 1996-03-11 02:17:11 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 1996-03-11 02:17:11 +0000 |
commit | 986af46af945c7bae3a66d639ca06d3275278279 (patch) | |
tree | d1aa333bf235dfbab1e9a41660438e96f30f37ba | |
parent | 0a73765170b25a581a0cd0d85eabaa85a99d4de7 (diff) | |
download | FreeBSD-src-986af46af945c7bae3a66d639ca06d3275278279.zip FreeBSD-src-986af46af945c7bae3a66d639ca06d3275278279.tar.gz |
Merge in Lite2: LIST replacement for f_filef, f_fileb, and filehead.
Reviewed by: davidg & bde
-rw-r--r-- | sys/kern/uipc_usrreq.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index e4efe13..65b2a03 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * From: @(#)uipc_usrreq.c 8.3 (Berkeley) 1/4/94 - * $Id: uipc_usrreq.c,v 1.12 1995/08/31 01:39:31 dyson Exp $ + * $Id: uipc_usrreq.c,v 1.14 1996/02/25 07:02:14 hsu Exp $ */ #include <sys/param.h> @@ -725,10 +725,10 @@ unp_gc() return; unp_gcing = 1; unp_defer = 0; - for (fp = filehead; fp; fp = fp->f_filef) + for (fp = filehead.lh_first; fp != 0; fp = fp->f_list.le_next) fp->f_flag &= ~(FMARK|FDEFER); do { - for (fp = filehead; fp; fp = fp->f_filef) { + for (fp = filehead.lh_first; fp != 0; fp = fp->f_list.le_next) { if (fp->f_count == 0) continue; if (fp->f_flag & FDEFER) { @@ -806,8 +806,9 @@ unp_gc() * 91/09/19, bsy@cs.cmu.edu */ extra_ref = malloc(nfiles * sizeof(struct file *), M_FILE, M_WAITOK); - for (nunref = 0, fp = filehead, fpp = extra_ref; fp; fp = nextfp) { - nextfp = fp->f_filef; + for (nunref = 0, fp = filehead.lh_first, fpp = extra_ref; fp != 0; + fp = nextfp) { + nextfp = fp->f_list.le_next; if (fp->f_count == 0) continue; if (fp->f_count == fp->f_msgcount && !(fp->f_flag & FMARK)) { |