vm_pageout.c (92246) | vm_pageout.c (92588) |
---|---|
1/* 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 1994 David Greenman 7 * All rights reserved. 8 * --- 51 unchanged lines hidden (view full) --- 60 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 61 * School of Computer Science 62 * Carnegie Mellon University 63 * Pittsburgh PA 15213-3890 64 * 65 * any improvements or extensions that they make and grant Carnegie the 66 * rights to redistribute these changes. 67 * | 1/* 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 1994 David Greenman 7 * All rights reserved. 8 * --- 51 unchanged lines hidden (view full) --- 60 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 61 * School of Computer Science 62 * Carnegie Mellon University 63 * Pittsburgh PA 15213-3890 64 * 65 * any improvements or extensions that they make and grant Carnegie the 66 * rights to redistribute these changes. 67 * |
68 * $FreeBSD: head/sys/vm/vm_pageout.c 92246 2002-03-13 23:48:08Z green $ | 68 * $FreeBSD: head/sys/vm/vm_pageout.c 92588 2002-03-18 15:08:09Z green $ |
69 */ 70 71/* 72 * The proverbial page-out daemon. 73 */ 74 75#include "opt_vm.h" 76#include <sys/param.h> --- 465 unchanged lines hidden (view full) --- 542 vm_map_t map; 543 vm_pindex_t desired; 544{ 545 vm_map_entry_t tmpe; 546 vm_object_t obj, bigobj; 547 int nothingwired; 548 549 GIANT_REQUIRED; | 69 */ 70 71/* 72 * The proverbial page-out daemon. 73 */ 74 75#include "opt_vm.h" 76#include <sys/param.h> --- 465 unchanged lines hidden (view full) --- 542 vm_map_t map; 543 vm_pindex_t desired; 544{ 545 vm_map_entry_t tmpe; 546 vm_object_t obj, bigobj; 547 int nothingwired; 548 549 GIANT_REQUIRED; |
550 if (vm_map_try_lock(map)) | 550 if (lockmgr(&map->lock, LK_EXCLUSIVE | LK_NOWAIT, (void *)0, curthread)) { |
551 return; | 551 return; |
552 } |
|
552 553 bigobj = NULL; 554 nothingwired = TRUE; 555 556 /* 557 * first, search out the biggest object, and try to free pages from 558 * that. 559 */ --- 945 unchanged lines hidden --- | 553 554 bigobj = NULL; 555 nothingwired = TRUE; 556 557 /* 558 * first, search out the biggest object, and try to free pages from 559 * that. 560 */ --- 945 unchanged lines hidden --- |