summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-15 23:15:16 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-15 23:15:16 +0000
commitae698c3a9c0ac28fe3e8d33607aabd439b5fab01 (patch)
tree4df744883469a0c9fd1d8fafecedbac53fab643b /sys/uvm
parent80effbf9fc4add39722825b8015eab2017435538 (diff)
Remove creds from struct buf, move the creds that nfs need into the nfs node.
While in the area, convert nfs node allocation from malloc to pool and do some cleanups. Based on the UBC changes in NetBSD. niklas@ ok.
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_swap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c
index 61dfcd02bc9..4697d8a23f6 100644
--- a/sys/uvm/uvm_swap.c
+++ b/sys/uvm/uvm_swap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_swap.c,v 1.40 2001/11/12 01:26:10 art Exp $ */
+/* $OpenBSD: uvm_swap.c,v 1.41 2001/11/15 23:15:15 art Exp $ */
/* $NetBSD: uvm_swap.c,v 1.46 2001/02/18 21:19:08 chs Exp $ */
/*
@@ -1391,8 +1391,6 @@ sw_reg_strategy(sdp, bp, bn)
nbp->vb_buf.b_iodone = sw_reg_iodone;
nbp->vb_buf.b_vp = NULLVP;
nbp->vb_buf.b_vnbufs.le_next = NOLIST;
- nbp->vb_buf.b_rcred = sdp->swd_cred;
- nbp->vb_buf.b_wcred = sdp->swd_cred;
LIST_INIT(&nbp->vb_buf.b_dep);
/*
@@ -1977,7 +1975,6 @@ uvm_swap_io(pps, startslot, npages, flags)
*/
bp->b_flags = B_BUSY | B_NOCACHE | (flags & (B_READ|B_ASYNC));
bp->b_proc = &proc0; /* XXX */
- bp->b_rcred = bp->b_wcred = proc0.p_ucred;
bp->b_vnbufs.le_next = NOLIST;
bp->b_data = (caddr_t)kva;
bp->b_blkno = startblk;