swap_pager.c (79624e2147c33b30d3ea0ea962a88e342d1181f8) | swap_pager.c (ab3f746966bcd7ebe250f3f198c4a7624456cc27) |
---|---|
1/* 2 * Copyright (c) 1994 John S. Dyson 3 * Copyright (c) 1990 University of Utah. 4 * Copyright (c) 1991, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * the Systems Programming Group of the University of Utah Computer --- 25 unchanged lines hidden (view full) --- 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * from: Utah $Hdr: swap_pager.c 1.4 91/04/30$ 40 * 41 * @(#)swap_pager.c 8.9 (Berkeley) 3/21/94 | 1/* 2 * Copyright (c) 1994 John S. Dyson 3 * Copyright (c) 1990 University of Utah. 4 * Copyright (c) 1991, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * the Systems Programming Group of the University of Utah Computer --- 25 unchanged lines hidden (view full) --- 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * from: Utah $Hdr: swap_pager.c 1.4 91/04/30$ 40 * 41 * @(#)swap_pager.c 8.9 (Berkeley) 3/21/94 |
42 * $Id: swap_pager.c,v 1.77 1997/09/01 02:28:32 bde Exp $ | 42 * $Id: swap_pager.c,v 1.78 1997/09/01 03:17:13 bde Exp $ |
43 */ 44 45/* 46 * Quick hack to page to dedicated partition(s). 47 * TODO: 48 * Add multiprocessor locks 49 * Deal with async writes in a better fashion 50 */ --- 947 unchanged lines hidden (view full) --- 998 pmap_qenter(kva, m, count); 999 1000 bp->b_flags = B_BUSY | B_READ | B_CALL | B_PAGING; 1001 bp->b_iodone = swap_pager_iodone1; 1002 bp->b_proc = &proc0; /* XXX (but without B_PHYS set this is ok) */ 1003 bp->b_rcred = bp->b_wcred = bp->b_proc->p_ucred; 1004 crhold(bp->b_rcred); 1005 crhold(bp->b_wcred); | 43 */ 44 45/* 46 * Quick hack to page to dedicated partition(s). 47 * TODO: 48 * Add multiprocessor locks 49 * Deal with async writes in a better fashion 50 */ --- 947 unchanged lines hidden (view full) --- 998 pmap_qenter(kva, m, count); 999 1000 bp->b_flags = B_BUSY | B_READ | B_CALL | B_PAGING; 1001 bp->b_iodone = swap_pager_iodone1; 1002 bp->b_proc = &proc0; /* XXX (but without B_PHYS set this is ok) */ 1003 bp->b_rcred = bp->b_wcred = bp->b_proc->p_ucred; 1004 crhold(bp->b_rcred); 1005 crhold(bp->b_wcred); |
1006 bp->b_un.b_addr = (caddr_t) kva; | 1006 bp->b_data = (caddr_t) kva; |
1007 bp->b_blkno = reqaddr[0]; 1008 bp->b_bcount = PAGE_SIZE * count; 1009 bp->b_bufsize = PAGE_SIZE * count; 1010 1011 pbgetvp(swapdev_vp, bp); 1012 1013 cnt.v_swapin++; 1014 cnt.v_swappgsin += count; --- 645 unchanged lines hidden --- | 1007 bp->b_blkno = reqaddr[0]; 1008 bp->b_bcount = PAGE_SIZE * count; 1009 bp->b_bufsize = PAGE_SIZE * count; 1010 1011 pbgetvp(swapdev_vp, bp); 1012 1013 cnt.v_swapin++; 1014 cnt.v_swappgsin += count; --- 645 unchanged lines hidden --- |