diff options
author | dg <dg@FreeBSD.org> | 1994-12-23 04:56:51 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-12-23 04:56:51 +0000 |
commit | e98518e769d89130026d2207f164cf12c2311d22 (patch) | |
tree | 70b59b12c86c5a91cbeb609ae98aee7f93cd8f1c /sys/vm/vm_pager.c | |
parent | cf154a213447be505c0b2f3e9fde40ad88b8a5ec (diff) | |
download | FreeBSD-src-e98518e769d89130026d2207f164cf12c2311d22.zip FreeBSD-src-e98518e769d89130026d2207f164cf12c2311d22.tar.gz |
Initialize b_vnbuf.le_next before returning a new buffer in getpbuf and
trypbuf. Move a couple of splbio's to be slightly less conservative.
Diffstat (limited to 'sys/vm/vm_pager.c')
-rw-r--r-- | sys/vm/vm_pager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index 1ecb203..d82ec25 100644 --- a/sys/vm/vm_pager.c +++ b/sys/vm/vm_pager.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_pager.c,v 1.8 1994/10/09 01:52:16 phk Exp $ + * $Id: vm_pager.c,v 1.9 1994/12/19 00:02:56 davidg Exp $ */ /* @@ -363,6 +363,7 @@ getpbuf() { bp->b_rcred = NOCRED; bp->b_wcred = NOCRED; bp->b_data = (caddr_t) (MAXPHYS * (bp-swbuf)) + swapbkva; + bp->b_vnbufs.le_next = NOLIST; return bp; } @@ -386,6 +387,7 @@ trypbuf() { bp->b_rcred = NOCRED; bp->b_wcred = NOCRED; bp->b_data = (caddr_t) (MAXPHYS * (bp-swbuf)) + swapbkva; + bp->b_vnbufs.le_next = NOLIST; return bp; } |